Code for Tree-Based Methods:
Applied Exercises:
chap_8_prob_3.R
(Plots the Gini index, classification error, and cross-entropy)
chap_8_prob_7.R
(Random forests on the
Boston
data set)
chap_8_prob_8.R
(A regression tree on the
Carseats
data set)
chap_8_prob_9.R
(Regression trees on the
OJ
data set)
chap_8_prob_10.R
(Boosting to predict
Salary
in the
Hitters
data set)
chap_8_prob_11.R
(Boosting in the
Caravan
data set)
John Weatherwax