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

1) In this lab, we will study the relationship between Year of program, and amount of
Sleep, using the data in stat2p98survey.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: 1st,2nd,
3rd,4th, or 5+.
In your lab report, you should:
a)[2] Write a brief introduction to the problem (1-2 sentences) and then wri te
down the probability model for this analysis - describe any variables, parameters,
and assumptions.
b)[2] 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$Year[mydata$Year ==1st (<5 credits complete)]=1st
c)[2] Use the aov() function in R to test the hypothesis H0 : \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 =0.05 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 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 Databases Questions!