Question: Task list : Read the instructions carefully. Open the answer template and put your name at the top. Open this google sheet. It contains data

Task list: Read the instructions carefully.

  1. Open the answer template and put your name at the top.
  2. Open this google sheet. It contains data on blood alcohol elimination rate (response variable) and 2 explanatory variables, breath alcohol elimination rate and gender, for each of 59 adults. The question of interest is the nature of the relationship between blood alcohol elimination rate (BAC) in g/L/hr and breath alcohol elimination rate (BrAC) in mg/L/hr. In plain terms, how can authorities estimate blood alcohol level from a breathalyzer? More information on Elimination rates of breath alcohol.
  3. In the google sheet, note the heading of each column; we will need to type these names exactly when analyzing the data in RStudio.
  4. Under file, click download, and choose "comma separated values (.csv)".
  5. Log in to RStudio.cloud and click on the previous project or start a new project.
  6. In the project, import this data by:
  7. Clicking "upload" in the middle right side of the rstudio screen (if you don't see it, click on "files" first). Then in the box, select the .csv file you just downloaded.
  8. Once it's uploaded, then in the main box at the prompt, type

> Alc=read.csv(file.choose(),header=TRUE) then hit enter.

From the pop-up box, select the file you uploaded and click open. The entire data file is now known as "Alc" in your RStudio workspace. In all commands below, the name of the file (Alc) must exactly match what you called it during the read.csv step. If you called it something different, use it instead of Alc. The name of the columns (BAC, BrAC & Gender) must exactly match the column headers in the imported file. If you called them something different, then replace those names with the ones you used.

  1. Make a scatterplot of the data by typing (in RStudio):

> plot(Alc$BrAC,Alc$BAC)

And (optional extra credit) a scatterplot of the data with different symbols for men and women by typing:

> plot(Alc$BrAC,Alc$BAC,pch=c(1:2)[Alc$Gender])

  1. Obtain linear regression analysis output by following the steps below.
  2. In RStudio, type

> fit=lm(Alc$BAC~Alc$BrAC) *this is the right one (there was an error, y is BAC, x is BrAC).

  1. Then in RStudio, type

> summary(fit) and hit enter, then type

> plot(fit) and hit enter several times as prompted; 3-4 different graphs will appear in the

lower right space on the screen.

  1. In the answer template, answer the questions and paste the requested results.

https://docs.google.com/document/d/1CSl_RE0DixoEWLRlqO7ys-Y0sOZK4pCJ8HtqQxTmh-0/edit?usp=sharing

2.https://www.sciencedirect.com/science/article/abs/pii/S0379073806006001

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!