Description Usage Arguments Value
Given a wide-form data, compute the estimate of the ATE under J2R using MI-based sequential method.
1 2 3 4 5 6 7 8 9 10 11 |
seq_formula |
a list of formulas for sequential regression |
data_wide |
wide-form of the data frame |
trt_name |
name of the treatment variable |
M |
imputation size |
fit_model |
type of the analysis model. Available: lm, Rfit::rfit (rank regression), MASS::rlm (robust regression) |
id_name |
name of the id variable |
estimator |
type of the estimator. Available: sample mean, reg with interaction, reg without interaction. Default: reg with interaction |
bootstrap |
Whether to use bootstrap variance |
B |
the number of bootstrap replicate |
A list of MI estimation of the ATE
ate_estMI point estimation of the ATE
var_rubinMI variance estimation by Rubin's rule
var_bootMI variance estimation by nonparametric bootstrap
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.