Question: Please work on the data set OJ again and use 102 as the seed for all the following parts. Take Purchase as the response variable

Please work on the data set OJ again and use 102 as the seed for all the following parts. Take Purchase as the response variable and the other attributes as predictors. Randomly split the data set into two sets: the training data set with 800 observations and the rest as the test data set. Use the Random Forrest method with 600 trees to build models with m = 2, 3, 4, 5, 6 and find the test error rate in each case. Please use a loop to complete the work.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!