1. Data Introduction

Wildlife researchers are monitoring a Florida alligator population by taking areal photographs and attempting to estimate the weights of the gators based on the length of the gators in the images. The data set Gators.csv contains the variables Length and Weight for a sample of alligators who have been captured and studied.

2. Analysis Goal

We are going to design a simple linear regression model and then assess the model fit and interpretation. Click this link to view the worksheet for this gator data analysis problem.

gators <- read.csv("https://raw.githubusercontent.com/dr-suz/Stat11/main/Data/Gators.csv")

R code for SLR models

After importing your data, you can fit a simple linear regression model by using the following code.

slr <- lm(<response> ~ <predictor>)

You can then see all the details of your linear model by using the summary function.

summary(slr)

Finally, to create a plot of your data with the linear regression line overlayed, use the following code.

plot(<predictor> , <response>)
abline(slr)

3. Summary of Results

Note, we have not yet had time in class to discuss the phenomena of regression to the mean or the issues posed by lurking variables. You are still responsible for understanding this material. (These might be good topics for us to cover during the review days before Quiz 1.)