Using the Boston dataset:
medv
as the response and lstat
as the predictor,
store the CV errors corresponding to the polynomial fits of orders one to three in cv.error
using LOOCV.Assume that:
MASS
and boot
libraries have been loadedBoston
dataset has been loaded and attached