# default: include all predictors with absolute correlation over 0.1
quickpred(nhanes)
# all predictors with absolute correlation over 0.4
quickpred(nhanes, mincor=0.4)
# include age and bmi, exclude chl
quickpred(nhanes, mincor=0.4, inc=c("age","bmi"), exc="chl")
# only include predictors with at least 30% usable cases
quickpred(nhanes, minpuc=0.3)
# use low threshold for bmi, and high thresholds for hyp and chl
pred <- quickpred(nhanes, mincor=c(0,0.1,0.5,0.5))
pred
# use it directly from mice
imp <- mice(nhanes, pred=quickpred(nhanes, minpuc=0.25, include="age"))
Run the code above in your browser using DataLab