question archive Using the Boston dataset in R, use with a continuous dependent variable: a
Subject:StatisticsPrice: Bought3
Using the Boston dataset in R, use with a continuous dependent variable:
a. Divide your data into two equal-sized samples, the in-sample and the out-sample. Estimate the elastic net model using the in-sample data with at least three levels of alpha (ie, three positions in between full lasso and full ridge; eg, alpha = 0, 0.5, and 1), using cv.glmnet to find the best lambda level for each run.