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 19:00
Solve x+3y=6 and 4x-6y=6 by elimination . show work !
Answers: 1
question
Mathematics, 21.06.2019 23:30
Tim earns $120 plus $30 for each lawn he mows.write an iniqualityvto represent how many lawns he needs to mow to make more than $310
Answers: 2
question
Mathematics, 22.06.2019 00:30
The scatter plot shows the number of animal cells clara examined in a laboratory in different months: plot ordered pairs 1, 20 and 2, 60 and 3,100 and 4, 140 and 5, 180 what is the approximate predicted number of animal cells clara examined in the 9th month?
Answers: 3
question
Mathematics, 22.06.2019 00:40
Ican interpret and represent the remainder in division calculations sensibly for the context (eg 27.4 in calculating average height in cm: $27.44 if it represents an amount of money) solve the following problems. 15) the wildlife park charges $25.50 dollars per person to enter their park if the park made $15096 dollars today, how many people entered the park? 16) ms adams plus 2,230 other keen runners ran a marathon: between them they ran 94817.5km. how many km did each competitor run?
Answers: 1
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, 06.04.2021 03:20
question
World Languages, 06.04.2021 03:20
question
Mathematics, 06.04.2021 03:20