powered by
Apply bootstrap to RAM-OP indicators using a PROBIT estimator.
estimate_probit( x, w, gam.stat = probit_gam, sam.stat = probit_sam, params = "MUAC", outputColumns = params, replicates = 399 )
A tibble::tibble() of boot estimates using PROBIT.
tibble::tibble()
Indicators dataset produced by create_op() with primary sampling unit (PSU) in column named "psu".
create_op()
A data frame with primary sampling unit (PSU) in column named "psu" and survey weight (i.e. PSU population) in column named "pop".
A function operating on data in x to estimate GAM prevalence for older people. Fixed to probit_gam().
x
probit_gam()
A function operating on data in x to estimate SAM prevalence for older people. Fixed to probit_sam().
probit_sam()
Parameters (named columns in x) passed to the function specified in statistic; fixed to "MUAC" as indicator amenable to probit estimation.
statistic
Names of columns in output data frame.
Number of bootstrap replicate case and non-case.
test <- estimate_probit(x = indicators.ALL, w = testPSU, replicates = 3) test
Run the code above in your browser using DataLab