Please enable JavaScript.
Coggle requires JavaScript to display documents.
Week5 - Coggle Diagram
Week5
Model Subset Selection
best subset, forward, backward
regsubsets function, nvmax specified, specify method for specific forward/backward step
learn how to read model - plot BIC if scale not specified, if you want to plot adjr2 or r2 need to specify scale
after you find the model with the highest adj r^2, you need to print the coefficients of the model using coef(model,index)
-
lasso
create the matrix containing the independent variables and the vector containing the dependent variable
create a range of lambdas by using grid, or let glm auto select
-
-
-
-
idea to find the best model and best subset of predictor variables among all the various attributes you can choose
-
-
-
-