Question: (b) Using only basic R functions*, obtain and report the estimate of test error, assuming squared error loss, using each of the following: AIC, BIC,

(b) Using only basic R functions*, obtain and report the estimate of test error, assuming squared error loss, using each of the following: AIC, BIC, 10-fold CV, 5-fold CV, LOOCV, bootstrap, leave-one-out bootstrap, and .632 bootstrap. * You are required to program all the test error estimation methods using for loops, random sampling, etc. That is, you must program the methods from scratch. Do NOT use the special functions that calculate the estimates directly in one function call (e.g. AIC, BIC, train, boot). You may, however, use elements stored within your lm) object such as fitted. values and residuals. (b) Using only basic R functions*, obtain and report the estimate of test error, assuming squared error loss, using each of the following: AIC, BIC, 10-fold CV, 5-fold CV, LOOCV, bootstrap, leave-one-out bootstrap, and .632 bootstrap. * You are required to program all the test error estimation methods using for loops, random sampling, etc. That is, you must program the methods from scratch. Do NOT use the special functions that calculate the estimates directly in one function call (e.g. AIC, BIC, train, boot). You may, however, use elements stored within your lm) object such as fitted. values and residuals
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
