Stat. 652 Homework02b
- Read: - mdsr2e Chapter 10 - mdsr2e Chapter 11 - Machine Learning with R, Second Edition, Chapter 3, 5, second half of Chapter 6. To access the book CSUEB Library Databases A-Z > Safari Books Online, register and access the book
- Problems: - 11.7 Exercises: Problem 6b, Run Models 1. Null Model, 2. Multiple Linear Regression, 3. Decision Tree, using CART, from the R package rpart, using training and test datasets, as described in part c of the problem.
Hint: For Problems 6a and 6b, explore the dataset before attempting to fit the models. You will need to deal with the missing values before applying some or all of the models. Which models do not work with missing data?
Instructions: Answer all questions in the space below the # headers.
11.7 Exercises: Problem 6b
Run Models 1. Null Model, 2. Multiple Linear Regression, 3. Decision Tree, using CART, from the R package rpart, using training and test datasets, as described in part c of the problem.
Use the quantitative response variable SleepHrsNight. Build and interpret the following models:
- Null model
- Multiple regression
- Regression tree (Decision Tree)
Model 1: Null Model
Answer:
Summarize your answer to the question here. All code and comments should be below and your written answer above.
Code and Comments:
Model 2: Multiple Linear Regression
Answer:
Summarize your answer to the question here. All code and comments should be below and your written answer above.
Code and Comments:
Model 3: Decision Tree
Answer:
Summarize your answer to the question here. All code and comments should be below and your written answer above.