Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

MIextract

Extract a parameter from a list of results


Description

Used to extract parameter estimates and standard errors from lists produced by with.imputationList.

Usage

MIextract(results, expr, fun)

Arguments

results

A list of objects

expr

an expression

fun

a function of one argument

Details

If expr is supplied, it is evaluated in each element of results. Otherwise each element of results is passed as an argument to fun.

Value

A list

See Also

Examples

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))

mitools

Tools for Multiple Imputation of Missing Data

v2.4
GPL-2
Authors
Thomas Lumley
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.