Skip to contents

Equations 2.2 to 2.4 of Brus (2022): t_hat = sum z_k/pi_k with design weights 1/pi_k, and zbar_hat = t_hat/N. Mirrors the ch2 modules.

Usage

morie_ht_estimators(z, pi, n_population)

Arguments

z

Sample values.

pi

Inclusion probabilities in (0, 1].

n_population

Population size N.

Value

List with total, mean, weights.

Examples

# equations 2.2 to 2.4: t_hat = sum z_k / pi_k
morie_ht_estimators(z = c(10, 20, 30), pi = c(0.5, 0.25, 0.2),
                    n_population = 100)
#> $total
#> [1] 250
#> 
#> $mean
#> [1] 2.5
#> 
#> $weights
#> [1] 2 4 5
#>