Answered step by step
Verified Expert Solution
Link Copied!

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

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Programming With Visual Basic .NET

Authors: Carsten Thomsen

2nd Edition

1590590325, 978-1590590324

More Books

Students also viewed these Databases questions