smi {mitools}R Documentation

Multiple imputations

Description

An imputationList object containing five imputations of data from the Victorian Adolescent Health Cohort Study.

Usage

data(smi)

Format

The underlying data are in a data frame with 1170 observations on the following 12 variables.

id
a numeric vector
wave
a numeric vector
mmetro
a numeric vector
parsmk
a numeric vector
drkfre
a factor with levels Non drinker not in last wk <3 days last wk >=3 days last wk
alcdos
a factor with levels Non drinker not in last wk av <5units/drink_day av =>5units/drink_day
alcdhi
a numeric vector
smk
a factor with levels non/ex-smoker <6 days 6/7 days
cistot
a numeric vector
mdrkfre
a numeric vector
sex
a numeric vector
drinkreg
a logical vector

Source

Carlin, JB, Li, N, Greenwood, P, Coffey, C. (2003) "Tools for analysing multiple imputed datasets" The Stata Journal 3; 3: 1-20.

Examples

data(smi)
with(smi, table(sex, drkfre))
model1<-with(smi, glm(drinkreg~wave*sex, family=binomial()))
MIcombine(model1)
summary(MIcombine(model1))

[Package mitools version 2.0 Index]