Title | Midterm Cheat Sheet |
---|---|
Course | Introduction to Statistical Models and Data Mining |
Institution | University of California Los Angeles |
Pages | 3 |
File Size | 75.5 KB |
File Type | |
Total Downloads | 88 |
Total Views | 132 |
cheat sheet and practice...
Stats 101C Methods of Classification
April 22, 2015
Part 1 Dummy Classes library(ISLR) ## Create a binary variable, mpg01, that contains 0 and 1 Auto$mpg01 median(Auto$mpg),1,0) Select useful variables for prediction; pairs(Auto[-9]) ## Choose "displacement", "horsepower", "weight", and "acceleration" Split data into training and test sets; set.seed(368) train...