Displaying 1 result from an estimated 1 matches for "mi_pre".
Did you mean:
_pre
2012 May 09
0
Failed Convergence when using mi to generate synthetic data
...r(j in 1:dim(diamonds1)[2]) {
emptydiamonds1[,j] <- NA
}
#throw up a dummy variable for imputation
diamonds1$impute=0
emptydiamonds1$impute=1
#package the two into one dataset
d2 <-rbind(diamonds1, emptydiamonds1)
str(d2)
#run in.info
miinfo <-mi.info(d2)
#pre_process
mi_pre <-mi.preprocess(d2)
#impute
Imp1 <-mi(mi_pre, n.iter=49)
[[alternative HTML version deleted]]