

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Stat 665 (Spring 2008) Kaizar
Due at the beginning of class, Monday April 21.
Aim of Homework: To apply and interpret logistic regression models for categorical responses and either categorical or continuous expanatory variables.
Also, to select teams for the final project.
Reading: An Introduction to Categorical Data Analysis, 2nd edition: Chapter 4
Exercises:
(a) If you and another student have already agreed to be a partner, indicate this and list this student’s name (b) If you have a preference for students you’d like to work with, but have not already made arrangements, list your preferences (c) If you do not have any preference, indicate this and I will assign you a partner.
wts=seq(from=min(crabs$weight), to=max(crabs$weight), length=100) plot(wts, predict(inter.glm, data.frame(weight=wts, mycolor=0), type="response"), ylim=c(0,1), type="l", xlab="Weight", ylab="Probability of Satellite", lwd=1.5) for(i in 1:3){ lines(wts, predict(inter.glm, data.frame(weight=wts, mycolor=i), type="response"), col=i+1, lty=i+1, lwd=1.5) } legend("bottomright", legend=c("Medium Light", "Medium", "Medium Dark", "Dark"), lty=1:4, col=1:4, lwd=1.5)
Write a paragraph (or two) summarizing your findings about the relationship between the presence of satellites and the weight and color of horseshoe crabs. This paragraph should be stand alone (i.e., interpretable without reading your responses to the other questions), and able to be understood by someone who understands some statistics, but has not had training in logistic regression.
Agresti Exercise 4.
(a) Consider the mean equation of a logistic regression:
π(x) =
eα+βx 1 + eα+βx^
Show that the slope of this line at a particular value of x is βπ(x)(1 − π(x)). Hint: the slope at x is the derivative of the function at x.