Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started