Description Usage Arguments Value
Get estimation results by Rubin's rule
1 | rubin_est(chg_imp, data_wide, covar_name, trt_name, M, fit_model, estimator)
|
chg_imp |
a matrix of imputed response at the last time point |
data_wide |
wide-form of the data frame |
covar_name |
names of the baseline covariates |
trt_name |
name of the treatment variable |
M |
imputation size |
fit_model |
type of the analysis model. Available: lm, Rfit::rfit (rank regressoin), MASS::rlm (robust regression) |
estimator |
type of the estimator. Available: sample mean, reg with interaction, reg without interaction. Default: reg with interaction. |
Rubin's point and variance estimate
ate_estMI point estimation of the ATE
var_rubinMI variance estimation by Rubin's rule
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.