6.13 Chapter 6 Review Questions 2

The next set of questions is based on a data frame called FatMice18, which contains data for 18 mice. Mice were randomly assigned to one of two light treatments: LD (light/dark cycle) or LL (light in the day and light at night as well). The researchers tracked the weight gained by each mouse (in grams) over four weeks of this light treatment.

The variables in the data frame are:

  • Light Light treatment: LD = normal light/dark cycle or LL = bright light at night
  • WgtGain4 Weight gain in grams over a four week period
  • CageLoc The location of the cage in the research lab (on the top row or bottom row)

Here's the result of running head(FatMice18):

  Light WgtGain4    CageLoc
1    LL       10    top row
2    LL       10    top row
3    LL       11 bottom row
4    LL        9 bottom row
5    LL       12    top row
6    LL        9 bottom row
require(coursekata) # run your code here
require(coursekata) # run your code here
require(coursekata) # run your code here

StudentSurvey is a data frame with 362 observations on the following 17 variables:

  • Year Year in school
  • Gender Student's gender: F or M
  • Smoke Smokers? No or Yes
  • Award Preferred award: Academy or Nobel or Olympic
  • HigherSAT Which SAT is higher? Math or Verbal
  • Exercise Hours of exercise per week
  • TV Hours of TV viewing per week
  • Height Height (in inches)
  • Weight Weight (in pounds)
  • Siblings Number of Siblings
  • BirthOrder Birth order, 1 = oldest
  • VerbalSAT Verbal SAT score
  • MathSAT Math SAT score
  • SAT Combined Verbal + Math SAT
  • GPA College grade point average
  • Pulse Pulse rate (beats per minute)
  • Piercings Number of body piercings

Responses