Question: While you are doing a different kind of regularization you will still use the same penalty argument. I have picked a different range for the

While you are doing a different kind of regularization you will still use the same penalty argument. I have picked a different range for the values of penalty since I know it will be a good range. You would in practice have to cast a wide net at first and then narrow on the range of interest. Use the output penalty_grid. Use 50 levels and set a range going from [-2,2]. Use the function grid_regular.
# *your code here*
#penalty_grid <-
penalty_object <- penalty(range = c(-2,2))
penalty_grid <- grid_regular(
penalty_object,
levels =50
)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!