Foodstamp - Residuals of Logistic Regression
Load and attach the data foodstamp.
library(catdata)
data(foodstamp)
attach(foodstamp)
With binary resonse one can fit a logit model.
food1 <- glm(y ~ TEN + SUP + INC, family=binomial, data=foodstamp)
summary(food1)
Have a look at the distribution of the residuals. Therefore a Normal Q-Q Plot is generated.
plot(food1,2)