powered by
Calculate between-imputation variance of the response mean $$\frac{\sum (\hat{Q}_l-\bar{Q})}{m-1}$$
Bm(qhats, m)
vector of Qhats(means of response for each imputed dataset)
number of imputed datasets
Bm: the between-dataset variance of the response mean
# NOT RUN { imp = mice::mice(mice::nhanes) qhats = Qhats(imp, "hyp") m = imp$m Bm(qhats, m) # }
Run the code above in your browser using DataLab