## Not run:
# require(Zelig)
# data(ozone)
#
# # First the number of components has to be chosen
# nb <- estim_ncpPCA(ozone[,1:11])
#
# # Multiple Imputation with Bayesian method
# res.BayesMIPCA<-MIPCA(ozone[,1:11],ncp=2,method.mi="Bayes",verbose=T)
#
# # Regression on the multiply imputed data set and pooling
# z.out <- zelig(maxO3~., model = "ls", data = res.BayesMIPCA$res.MI,cite=F)
# summary(z.out,digits=5)
#
# # Diagnostics
# res.over<-Overimpute(res.BayesMIPCA)
#
# ## End(Not run)
Run the code above in your browser using DataLab