Homework 4

Regression

Due 4/26/2024 at 9am

Instructions

  • Creating a new project. and giving it a sensible name such as homework3 and having that project in the course folder you created.

  • Create a new quarto document and give it a sensible name such as hw3.

  • In the YAML add the following (add what you don’t have). The embed-resources component will make your final rendered html self-contained.

---
title: "Document title"
author: "Your Name"
format:
  html:
    embed-resources: true
---
  • Though the book used R code for base R, I want you to complete the exercises using functions from tidymodels when possible.
  • Set a seed before each problem.
  • Make sure your answers print results. If the output is a large table, use the head() function to shorten the output.

Exercises - NOTE THE CHAPTER NUMBER

  1. Complete exercise chapter 6, number 1 in ISLR.

  2. Complete exercise chapter 6, number 8 in ISLR.

  3. Complete exercise chapter 6, number 9 in ISLR. Skip (e) and (f) but do (g) with the models you have.

Submission

When you are finished with your homework, be sure to Render the final document. Once rendered, you can download your file by:

  • Finding the .html file in your File pane (on the bottom right of the screen)
  • Click the check box next to the file
  • Click the blue gear above and then click “Export” to download
  • Submit your final html document to the respective assignment on Moodle