{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

420Hw03 - STAT 420(10 points(due Friday September 19 by...

This preview shows pages 1–2. Sign up to view the full content.

STAT 420 Fall 2008 Homework #3 (10 points) (due Friday, September 19, by 3:00 p.m.) 1. Use Packages > Install Package(s)… to download and install package (library) faraway . Use the infmort data set where Y is income and the grouping variable is region (Asia, Europe, Americas and Africa). > library(faraway) > data(infmort) > infmort[1:5,] # to see what the data set looks like region income mortality oil Australia Asia 3426 26.7 no oil exports Austria Europe 3350 23.7 no oil exports Belgium Europe 3346 17.0 no oil exports Canada Americas 4751 16.8 no oil exports Denmark Europe 5029 13.5 no oil exports > attach(infmort) After attach(infmort) , you may refer to the variables in the data set directly, i.e., income instead of infmort\$income . a) Draw a boxplot of income for each of the four regions on the same set of axes. b) Compute the sample mean and sample variance for each of the regions. c) A visual inspection of the boxplots may lead us to conclude that the equal variance assumption may not be satisfied and that some transformation may be needed.

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 3

420Hw03 - STAT 420(10 points(due Friday September 19 by...

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

View Full Document
Ask a homework question - tutors are online