View source: R/02-classicBoot.R
estimate_classic | R Documentation |
Apply bootstrap to RAM-OP indicators using a classical estimator.
estimate_classic(
x,
w,
statistic = bbw::bootClassic,
indicators = c("demo", "food", "hunger", "adl", "disability", "mental", "dementia",
"health", "oedema", "screening", "income", "wash", "visual", "misc"),
params = get_variables(indicators),
outputColumns = params,
replicates = 399
)
x |
Indicators dataset produced by |
w |
A data frame with primary sampling unit (PSU) in column named "psu" and survey weight (i.e. PSU population) in column named "pop". |
statistic |
A function operating on data in |
indicators |
A character vector of indicator set names to estimate. Indicator set names are "demo", "food", "hunger", "disability", "adl", "mental", "dementia", "health", "income", "wash", "visual", and "misc". Default is all indicator sets. |
params |
Parameters (named columns in |
outputColumns |
Names of columns in output data frame. This defaults to
values specified in |
replicates |
Number of bootstrap replicates |
A tibble::tibble()
of boot estimates using bbw::bootClassic()
mean function
test <- estimate_classic(
x = indicators.ALL, w = testPSU, replicates = 9
)
test
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.