Skip to content
Prev 9303 / 20628 Next

Linear mixed modeling following multiple imputation.

Hi:

After imputation via amelia(), the output file is a list whose first
component, imputations, is a list containing the imputed data frames.
Given that the post-imputation object is named a.out, one can write
the list of imputed data frames as  a.out$imputations, from which the
models can be fit with

library(lme4)
mods <- lapply(a.out$imputations,
                function(d) lmer( trans1 ~ time*negative + (time | Subject),
                                                data = d ) )

This avoids the step of saving the individual imputed data sets to
disk and reading them back in.

Dennis
On Mon, Dec 3, 2012 at 11:06 AM, W Robert Long <longrob604 at gmail.com> wrote: