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:
LightLight treatment: LD = normal light/dark cycle or LL = bright light at nightWgtGain4Weight gain in grams over a four week periodCageLocThe 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 hererequire(coursekata)
# run your code hererequire(coursekata)
# run your code hereStudentSurvey is a data frame with 362 observations on
the following 17 variables:
YearYear in schoolGenderStudent's gender: F or MSmokeSmokers? No or YesAwardPreferred award: Academy or Nobel or OlympicHigherSATWhich SAT is higher? Math or VerbalExerciseHours of exercise per weekTVHours of TV viewing per weekHeightHeight (in inches)WeightWeight (in pounds)SiblingsNumber of SiblingsBirthOrderBirth order, 1 = oldestVerbalSATVerbal SAT scoreMathSATMath SAT scoreSATCombined Verbal + Math SATGPACollege grade point averagePulsePulse rate (beats per minute)PiercingsNumber of body piercings