Рет қаралды 21,743
This video is going to show how to perform variable selection and best subsets selection using regsubsets() in R. Measures include R-squared, Adjusted R-Squared, Residual Sum of Squares, Mellow's Cp, BIC. Also you can define whether using forward of backward selection under different measures. Finally, we can use validation set approach and cross-validation approach to increase precision.
This is a lab section from the book called An Introduction to Statistical Learning with Applications in R. All R codes and comments below belong to the book and authors. Check out their book, which is really good!
Reference:James, Gareth, et al. An introduction to statistical learning. NewYork: springer, 2013.
Thanks for watching. My website: allenkei.weebly...
If you like this video please "Like", "Subscribe", and "Share" it with your friends to show your support! If there is something you'd like to see or you have question about it, feel free to let me know in the comment section. I will respond and make a new video shortly for you. Your comments are greatly appreciated.