Variance of household counts by region, calculated from niger_eas. Used for demonstrating Neyman optimal allocation in stratified sampling.
niger_eas_varianceA tibble with 8 rows and 2 columns:
Factor. Region name
Numeric. Variance of household counts within region
data(niger_eas_variance)
niger_eas_variance
#> # A tibble: 8 × 2
#> region var
#> <fct> <dbl>
#> 1 Agadez 6249.
#> 2 Diffa 1950.
#> 3 Dosso 2771.
#> 4 Maradi 3207.
#> 5 Niamey 5728.
#> 6 Tahoua 2487.
#> 7 Tillabéri 2506.
#> 8 Zinder 2926.
# Neyman allocation
if (FALSE) { # \dontrun{
sampling_design() |>
stratify_by(region, alloc = "neyman", variance = niger_eas_variance) |>
draw(n = 500) |>
execute(niger_eas, seed = 42)
} # }