homework5 - 3. (10 points) Agresti Problem 3.18, a-c. Note:...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Stat 665 (Spring 2011) Kaizar Homework 5 Due at the beginning of class, Friday May 6 . Aim of Homework : To practice computing with GLMs. Reading : An Introduction to Categorical Data Analysis, 2nd edition: Chapter 3. Exercises : 20 points total 1. (5 points) Agresti Problem 3.11, b and c. You may fnd this code useFul: y=c(8,7,6,6,3,4,7,2,3,4,9,9,8,14,8,13,11,5,7,6) x=rep(c(0,1), c(10,10)) wafers=data.frame(y,x) 2. (5 points) Use the data in Agresti Problem 3.12 to construct a model where the link and linear components are: log ( μ i ) = α 1 + β 1 z i You may fnd this code useFul: wafers$z=rep(c(0,1,0,1),c(5,5,5,5)) (a) Report the prediction equation and interpret ˆ β 1 . (b) Compare this model to the one you Found in (1) above. Which model do you preFer?
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 3. (10 points) Agresti Problem 3.18, a-c. Note: An oset term is a known (not estimated) part oF the linear portion oF the model, as describedin Section 3.3.5. The oset argument to the glm() Function in R might be useFul here. or example, you might want to use code similar to: glm(Y~X + offset(log(attendance)) The output oF this code will have estimates For an intercept and a coecient For X, but not For the oset term. (IF you attended the Statistics Department seminar on Thursday, April 28, the speaker used a similar oset to account For the population in the counties in Wisconsin when creating models For the number oF cancer cases observed in each county.) 1...
View Full Document

This note was uploaded on 07/26/2011 for the course STA 665 taught by Professor Staff during the Spring '10 term at Ohio State.

Ask a homework question - tutors are online