10.07.2015 Views

Using R for Introductory Statistics : John Verzani

Using R for Introductory Statistics : John Verzani

Using R for Introductory Statistics : John Verzani

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Bivariate data 79Figure 3.5 Six qqnorm() graphs <strong>for</strong>different types of datacontrol =="C" are not using a cell phone, and those with control =="T" are. Their time torespond to some external event is recorded in seconds.Create side-by-side boxplots of the variable react ion. time <strong>for</strong> the two values ofcontrol. Compare the centers and spreads.3.9 For the data set twins (<strong>Using</strong>R) make a boxplot of the Foster and Biologicalvariables. Do they appear to have the same spread? The same center?3.10 The data set stud. recs (<strong>Using</strong>R) contains 160 SAT scores <strong>for</strong> incoming collegestudents stored in the variables sat.v and sat.m. Produce sideby-side densityplots of thedata. Do the two data sets appear to have the same center? Then make a quantile-quantileplot. Do the data sets appear to have the same shape?3.11 For the data set morley, make a boxplot of the Speed variable <strong>for</strong> Expt ==1 andExpt ==2. These data sets are the measurements of the speed of light <strong>for</strong> two differentexperiments. Do they appear to have the same spread? The same center?3.12 The data set normtemp (<strong>Using</strong>R) contains normal body temperaturemeasurements <strong>for</strong> 130 healthy individuals recorded in the variable temperature. Thevariable gender is 1 <strong>for</strong> a male subject and 2 <strong>for</strong> a female subject. Break the data up bygender and create side-by-side boxplots. Does it appear that males and females havesimilar normal body temperatures?

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!