Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Calculus

Authors: Dale Varberg, Edwin J. Purcell, Steven E. Rigdon

9th edition

131429248, 978-0131429246

More Books

Students also viewed these Mathematics questions