Question: please use R to solve this question and include the R codes. I have found many solutions for this question but i do not know

please use R to solve this question and include the R codes.

I have found many solutions for this question but i do not know which is the correct one.

please use R to solve this question and include the R codes.I

Use the 0.] data set which is part of the ISLE. package. (a) Create a training set containing a random sample of 80-0 observations, and a test set containing the remaining observations. (b) Fit a tree to the training data, which purchase as the response and the other variables except for Store as predictors. Use the summary\" function to produce summary statistics about the treeJ and describe the results obtained. 1What is the training error rate? HOW many terminal nodes does the tree have? (c) Create a plot of the treeJ and interpret the results. (d) Predict the response on the test data, and produce a confusion matrix comparing the test labels to predicted test labels. What is the test error rate

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 Mathematics Questions!