Q1. Say, you are interested in predicting body mass index (bmi in kg/m2) with the following outcome model: model <- as.formula(paste('bmi ~ age + sex + race + income + diet + smoking')). The name of the analytic, training, and testing datasets are data.analytic, data.train, and data.test, respectively. Which function can be used to fit 10-fold cross-validation in R?
Q2. Say, 'bmi' is a binary variable in Q1, defined as bmi > 30kg/m2 or not. Which function would you likely use to fit 10-fold cross-validation?
Q3. Which function would you likely use in Q2 if you are interested in fitting LASSO with 10-fold cross-validation?
Q4. Which of the following is an ensemble method?
Q5. Which is an example of unsupervised learning? (Select All that apply)