subject
Mathematics, 29.10.2021 14:00 justiceharris8

Solve the following using R. Show all of your work and explain your work and/or answers when necessary. Driving fatalities and speed limits. In 1987, the federal government set the speed limit on interstate highways at 65 mph in most areas of the United States. In 1995, federal restrictions were eliminated so that states assumed control of setting speed limits on interstate highways. The datafile Speed contains the variables FatalityRate, the number of interstate fatalities per 100 million vehicle-miles of travel, Year, and an indicator variable StateControl that is 1 for the years 1995–2007 and zero for earlier years in the period 1987–1994. Here are the first few rows of data:
__Year FatalityRate StateControl__
__1987 2.41 0__
__1988 2.32 0__
__1989 2.17 0__
__1990 2.08 0__
__1991 1.91 0__
TO REITERATE, ABOVE IS JUST THE FIRST FEW ROWS OF DATA. ALL OF THE DATA IS STORED IN THE R FILE Speed .
Therefore the first two lines of your code in R should be:
library(Stat2Data)
data(Speed)
a. Fit a regression of fatality rate on year. What is the slope of the least squares line?
b. Examine a residual plot. What is remarkable about this plot?
c. Fit the multiple regression of fatality rate on year, state control, and the interaction between year and state control. Is there a significant change in the relationship between fatality rate and year starting in 1995?
d. What are the fitted equations relating fatality rate to year before and after 1995?

ansver
Answers: 3

Another question on Mathematics

question
Mathematics, 21.06.2019 20:30
Stacey filled her 1/2 cup of measuring cup seven times to have enough flour for a cake recipe how much flour does the cake recipe calls for
Answers: 2
question
Mathematics, 21.06.2019 21:20
Sam is a waiter at a local restaurant where he earns wages of $5 per hour sam figures that he also eams about $3 in tips for each person he serves sam works 6 hours on a particular day. if n represents the number of people sam serves that day, which of the following functions could sam use to figure ehis total earings for the do o a. en) = 30 o b. en) = 5n+ 18
Answers: 2
question
Mathematics, 22.06.2019 00:40
What is the interquartile range (iqr) of the data set represented by this box plot?
Answers: 3
question
Mathematics, 22.06.2019 01:50
Point q is equidistant from the sides of ∠tsr. find m∠rst.
Answers: 2
You know the right answer?
Solve the following using R. Show all of your work and explain your work and/or answers when necessa...
Questions
question
Mathematics, 11.10.2021 14:40
question
Chemistry, 11.10.2021 14:40
question
Mathematics, 11.10.2021 14:40
Questions on the website: 13722359