estimate_total {bbw} | R Documentation |
Post-stratification analysis
Description
Post-stratification analysis
Usage
estimate_total(est_df, pop_df, strata)
Arguments
est_df |
A |
pop_df |
A |
strata |
A character value of the variable name in |
Value
A vector of values for the overall estimate, overall 95% lower
confidence limit, and overall 95% upper confidence limit for each of the
strata
in est_df
.
Examples
est_df <- boot_bw(
x = indicatorsHH, w = villageData, statistic = bootClassic,
params = "anc1", strata = "region", replicates = 9, parallel = TRUE
) |>
boot_bw_estimate()
## Add population ----
pop_df <- somalia_population |>
subset(select = c(region, total))
names(pop_df) <- c("strata", "pop")
estimate_total(est_df, pop_df, strata = "region")