Multiple imputation from the multivariate linear mixed model
Source:R/imputeLongitudinal.R
mixed_model_imputations.Rdmethod = "mixed" in imputeLongitudinal.
Fits the model longitudinalSub fits – each biomarker's
linear mixed model, with the random effects of all biomarkers jointly
normal with covariance Sigma_fit – and draws each subject's
missing values from their normal distribution given everything observed
for that subject: all of its visits and all biomarkers. For each
completion the model's parameters are first drawn from an approximation
to their posterior, so that the completions also reflect the uncertainty
in the fit (proper multiple imputation): the fixed effects from their
estimated sampling distribution, each residual variance from a scaled
inverse chi-squared distribution, and Sigma_fit from an inverse
Wishart distribution with as many degrees of freedom as subjects.