prelim: Converts a dataset imputed by MIMCA or MIPCA into a mids...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/prelim.R

Description

This function performs grouping and sorting operations on a multiply imputed dataset. It creates a mids object that is needed for input to with.mids, which allows analyse of the multiply imputed data set. The original incomplete data set needs to be available so that we know where the missing data are.

Usage

1
prelim(res.mi,X)

Arguments

res.mi

an output of the functions MIPCA or MIMCA

X

the original incomplete data set corresponding to the res.mi argument

Value

imp.mids

An object of type mids

Author(s)

Vincent Audigier [email protected], Francois Husson [email protected] and Julie Josse [email protected]

See Also

MIPCA,MIMCA,with.mids,pool,summary.mira

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## Not run: 
data(TitanicNA)

## First the number of components has to be chosen 
##   (for the reconstruction step)
## nb <- estim_ncpMCA(TitanicNA,ncp.max=5) ## Time-consuming, nb = 5

## Multiple Imputation
res.mi <- MIMCA(TitanicNA, ncp=5, verbose=T)

#Analysis
imp<-prelim(res.mi,TitanicNA)
fit <- with(data=imp,exp=glm(SURV~CLASS+AGE+SEX,family = "binomial"))

#Pooling
res.pool<-pool(fit)
summary(res.pool)

## End(Not run)

missMDA documentation built on June 26, 2018, 5:02 p.m.