Question: o begin our analysis, we need to divide the data into a training and test data set. The training data set has 70% of the

o begin our analysis, we need to divide the data into a training and test data set. The training data set has 70% of the data and is used to build the decision tree model and the test dataset has the remaining 30% of the data and is used to evaluate the accuracy of the model. We will then take the training data set and run the general linear model or glm function to build the model. A general linear model is a type of linear regression modeling that allows for variables that have error distribution models that do not have a normal distribution. To review the data after running the glm function we use the print function and the results are in figure 3 below

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!