4.14 Chapter 4 Review Questions

On this practice quiz, we're going to be referring to a data frame called SleepStudy. Below is a portion of the data frame as well as definitions of the variables included in it.

Data frame output
row Gender LarkOwl NumEarlyClass GPA ClassesMissed CognitionZscore PoorSleepQuality DepressionScore Stress Happiness AllNighter
10Neither03.600-0.2644normal280
20Neither23.2401.3961normal250
30Owl02.97120.381818normal170
40Lark53.7601.3991normal320
50Owl03.2041.2297normal150
61Neither03.500-0.04614high220
  • Gender 1=male, 0=female
  • LarkOwl Early riser or night owl? Lark, Neither, or Owl
  • NumEarlyClass Number of classes per week before 9am
  • GPA Grade point average (0-4 scale)
  • ClassesMissed Number of classes missed in a semester
  • CognitionZscore Summary of performance on cognitive skills tests (continuous scores ranging from -1 to +1)
  • PoorSleepQuality Measure of sleep quality (higher values are poorer sleep)
  • DepressionScore Measure of degree of depression
  • Stress Coded stress score: normal or high
  • Happiness Measure of degree of happiness (higher values are happier)
  • AllNighter Had an all-nighter this semester? 0 or 1

Responses