Stat. 652 Homework02b

Author

Your Name, first and last

Published

February 9, 2024

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.

Code and Comments: