In this assignment, you’ll use regression analysis to explore the growth rate for young adult lemurs at the Duke Lemur Center.
In this assignment, you will…
Go to the sta210-fa21 organization on GitHub. Click on the repo with the prefix hw-02. It contains the starter documents you need to complete the lab.
Clone the repo and start a new project in RStudio. See the Lab 01 instructions for details on cloning a repo, starting a new R project and configuring git.
The following packages will be used in this assignment:
library(tidyverse)
library(knitr)
library(ggfortify)
library(broom)
library(viridis)
The data set lemurs-pcoq-ya.csv
is a subset of the original Duke Lemur data set available in the #TidyTuesday GitHub repo. This data includes information on “young adult” lemurs from the Coquerel’s sifaka species, the largest species at Duke Lemur Center. The analysis will focus on the following variables:
weight_g
: Animal weight, in grams. Weights under 500g generally to nearest 0.1-1g; Weights >500g generally to the nearest 1-20g.age_at_wt_mo
: Age of the animal when the weight was taken, in months (((Weight_Date-DOB)/365)*12)Click here for the full list of variables and their definitions.
The goal of this analysis is to use a linear regression model to describe the growth rate for young adult lemurs from the Coquerel’s sifaka species. The exercises will put together what we’ve learned thus far to walk through a regression analysis workflow.
For each section…
Before you wrap up the assignment, make sure all documents are updated on your GitHub repo. We will be checking these to make sure you have been practicing how to commit and push changes.
Remember – you must turn in a PDF file to the Gradescope page before the submission deadline for full credit.
To submit your assignment:
Go to http://www.gradescope.com and click Log in in the top right corner.
Click School Credentials ➡️ Duke NetID and log in using your NetID credentials.
Click on your STA 210 course.
Click on the assignment, and you’ll be prompted to submit it.
Mark the pages associated with each exercise. All of the pages of your assignment should be associated with at least one question (i.e., should be “checked”).
Select the first page of your .PDF submission to be associated with the “Workflow & formatting” section.
EDA | 8 |
Regression | 5 |
Model conditions | 10 |
Model diagnostics | 12 |
Interpretations & conclusions | 10 |
Workflow & formatting | 5 |