Natural Resources 340 - Biological Statistics I Homework 2...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Biological Statistics I Biometry 301 / Natural Resources 313 Homework 2 Name: Jackie Lewis Section: 1 Date: 9-5-07 1. (5 points) One useful method for examining data is to plot the distribution of the data for various factors, such as gender. Use the command below to create a boxplot that compares head size between females and males for the measured samples taken from the class: boxplot( Class07$head[Class07$sex=="F"], Class07$head[Class07$sex=="M"], ylab="Head Size (cm)", names=c("Female","Male")) 55 60 65 Female Male Head Size (cm)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Which group appears to have bigger heads on average? Males tapply(Class07$head, Class07$sex, mean) F M 56.21053 58.54762 The difference between the two values is 2.337 What is the difference in mean head size between males and females? Males: The tapply() command, which applies a function such as mean() to the first column based on categories in the second column, may help in sorting this out: tapply(Class07$head,Class07$sex,mean) Modify the tapply() command to examine the median, range, and quantiles (i.e. quantile). On the boxplot figure pencil in the appropriate parts of the box with values corresponding to the maximum, 75th percentile, 50 th percentile, 25th percentile and minimum for both males and fe males. Finally, write in the location of the mean of each group.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/19/2008 for the course BTRY 3010 taught by Professor Sullivan,p. during the Fall '07 term at Cornell University (Engineering School).

Page1 / 9

Natural Resources 340 - Biological Statistics I Homework 2...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online