# Imputation of all incomplete covariates in the table simu_data:
data(simu_data)
# Here we keep the complete variable "Gender" in the imputation model.
# Using MICE (REP = 3):
imput_mice <- imput_cov(simu_data,
indcol = 4:8, R_mice = 3,
meth = c("logreg", "polyreg", "polr", "logreg", "pmm")
)
summary(imput_mice)
# Using FAMD (NB_COMP = 3):
imput_famd <- imput_cov(simu_data,
indcol = 4:8,
meth = c("logreg", "polyreg", "polr", "logreg", "pmm"),
missMDA = TRUE
)
summary(imput_famd)
Run the code above in your browser using DataLab