April 2017
Beginner to intermediate
420 pages
9h 58m
English
We will jump right into the prostate dataset, but let's first load the necessary R packages. As always, please ensure that you have the libraries installed prior to loading the packages:
> library(rpart) #classification and regression trees > library(partykit) #treeplots > library(MASS) #breast and pima indian data > library(ElemStatLearn) #prostate data > library(randomForest) #random forests > library(xgboost) #gradient boosting > library(caret) #tune hyper-parameters
We will first do regression with the prostate data and prepare it, as we did in Chapter 4, Advanced Feature Selection in Linear Models. This involves calling the dataset, coding the gleason score as an indicator variable using the ifelse() function, and creating ...
Read now
Unlock full access