Question: 1 ) In this lab, we will study the relationship between Year of program, and amount of Sleep, using the data in stat 2 p
In this lab, we will study the relationship between Year of program, and amount of
Sleep, using the data in statpsurvey.csv on Brightspace. The response variable
for this analysis will be the how many hours did you sleep last night question on
the survey, and the factor of interest is year of program with five levels: stnd
rdth or
In your lab report, you should:
a Write a brief introduction to the problem sentences and then wri te
down the probability model for this analysis describe any variables, parameters,
and assumptions.
b Rename the relevant columns of the data frame to be Year and Sleep
respectively. Rename the levels of the Year factor to be easier to read, for
example
mydata$Yearmydata$Year st credits completest
c Use the aov function in R to test the hypothesis H : tau i tau j
for all i j
against the alternative Ha : tau i tau j
for at least one i j at the alpha level.
Include the R output in your report.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
