missMDA (version 1.19)

prelim: Converts a dataset imputed by MIMCA, MIPCA or MIFAMD into a mids object

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

prelim(res.mi,X)

Value

imp.mids

An object of type mids

Arguments

res.mi

an output of the functions MIPCA, MIMCA or MIFAMD

X

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

Author

Vincent Audigier vincent.audigier@lecnam.net, Francois Husson francois.husson@institut-agro.fr and Julie Josse josse@agrocampus-ouest.fr

See Also

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

Examples

Run this code
if (FALSE) {
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)
}

Run the code above in your browser using DataLab