with.amelia | R Documentation |
Evaluate an R expression in the environments constructed from the
imputed data sets of a call to amelia
function.
## S3 method for class 'amelia'
with(data, expr, ...)
data |
imputation output from the |
expr |
expression to evaluate in each imputed data set in
|
... |
arguments to be passed to (future) methods. |
a list the same length as data$imputations
that
contains the output of the expression as evaluated in each imputed
data set of data
.
Matt Blackwell
data(africa)
a.out <- amelia(x = africa, cs = "country", ts = "year", logs =
"gdp_pc")
imp.mods <- with(a.out, lm(gdp_pc ~ infl + trade))
mi.combine(imp.mods, conf.int = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.