View source: R/05-classicBoot.R
estimate_classic | R Documentation |
Function to 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 create_op_all with primary
sampling unit (PSU) in column named |
w |
A data frame with primary sampling unit (PSU) in column named
|
statistic |
A function operating on data in |
indicators |
A character vector of indicator set names to estimate.
Indicator set names are |
params |
Parameters (named columns in |
outputColumns |
Names of columns in output data frame. This defaults to
values specified in |
replicates |
Number of bootstrap replicates |
Tibble of boot estimates using 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.