Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please help with as many as possible, but if you cant do them all then just as many as you can :) 2. [55 points]
Please help with as many as possible, but if you cant do them all then just as many as you can :)
2. [55 points] Suppose a sleep study was run to investigate association between the number of times an individual woke up during an 8-hour overnight observation period (variable "CountAwake"), and certain explanatory variables/factors. Each individual went to sleep in a separate room at 10 pm, and was observed until 6 am the following morning. Two room characteristics were measured ("light" and "noise"), and each individual reported whether they were a "mom ing person" or a "night owl". The data We "SleepStudy" contains information on four variables/factors, for each of 32 individuals: Name | Description COuntAwake Number of times individual woke up during observation period light measurement of how dark the room is noise measurement of the how quiet the room is morning each individual self-identied as either a morning person (coded "Yes"), or a night owl (coded "No") A few lines of data frame "SleepStudy" are presented here: CountAwake light noise morning 0 0 6 No 1 1 1 No 0 2 2 No 2 3 3 No 1 1 4 No 0 4 5 No 0 9 1 No 1 3 2 No 22 23 3 Yes 21 3 l 4 Yes 10 2D 5 Yes 3 4 5 No 0 9 1 No 3 3 2 No 19 20 4 Yes 15 15 5 Yes The following command was run, followed by a summary of tl: tl summaryt fitl, correlation = FALSE } # omitting some information below Coefficients: Estimate Std. Error 2 value Pr(>|z|} light 0.00277 0.00593 0.47 0.6407 noise -0.31195 0.03875 -8.05 8.3e16 *** factortmorning}No 0.79476 0.26679 2.98 0.0029 ** factortmorning}Yes 4.05107 0.23120 17.52Step 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