powered by
Used to extract parameter estimates and standard errors from lists produced by with.imputationList.
with.imputationList
MIextract(results, expr, fun)
A list of objects
an expression
a function of one argument
A list
If expr is supplied, it is evaluated in each element of results. Otherwise each element of results is passed as an argument to fun.
expr
results
fun
with.imputationList, MIcombine
MIcombine
# NOT RUN { 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)) # }
Run the code above in your browser using DataLab