MIextract | R Documentation |
Used to extract parameter estimates and standard errors from
lists produced by with.imputationList
.
MIextract(results, expr, fun)
results |
A list of objects |
expr |
an expression |
fun |
a function of one argument |
If expr
is supplied, it is evaluated in each element of
results
. Otherwise each element of results
is passed as
an argument to fun
.
A list
with.imputationList
, MIcombine
data(smi)
models<-with(smi, glm(drinkreg~wave*sex,family=binomial()))
betas<-MIextract(models,fun=coef)
vars<-MIextract(models, fun=vcov)
summary(MIcombine(betas,vars))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.