mcs | R Documentation |
The 'mcs()' helper function combines the 3-steps: simulate, calibrate, combine
mcs(des_2be_cal, df_or_list_est_tot, form_outcome, form_poststrat, type_cal, num_sim = 1, parallel = FALSE, num_core = 1, lgl_rej_neg_sim = TRUE)
des_2be_cal |
a survey design object that is to be calibrated see |
df_or_list_est_tot |
a single data.frame of estimated joint totals or list of data.frames of estimated marginal totals (and respective standard errors) see |
form_outcome |
a formula of the outcome, whose total we want an improved MCS estimate of see |
form_poststrat |
single formula of joint poststrata or list of formulas for marginal poststrata see |
type_cal |
a character string for 'mcsp' or 'mcsr' |
num_sim |
the number of simulations to calibrate onto |
parallel |
a logical whether to run in parallel using |
num_core |
the number of cores for the parallel job |
lgl_rej_neg_sim |
a logical whether to reject negative simulations |
a 1 row data.frame of the MCS estimate and its standard error
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.