View source: R/post_strat_estimation.R
estimate_total | R Documentation |
Post-stratification analysis
estimate_total(est_df, pop_df, strata)
est_df |
A |
pop_df |
A |
strata |
A character value of the variable name in |
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
.
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.