% \VignetteIndexEntry{Foodstamp - Residuals of Logistic Regression} %\VignetteEngine{knitr::knitr} %\VignetteEncoding{UTF-8} \documentclass[a4paper]{article} \title{Foodstamp - Residuals of Logistic Regression} \begin{document} \maketitle 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) @ \end{document}