5.2. Example
As in the binomial case, let’s start with a real example. Several years ago, I did a survey of 195 undergraduates at the University of Pennsylvania in order to study the effects of parenting styles on altruistic behavior. One of the questions was “If you found a wallet on the street, would you (1) keep the wallet and the money, (2) keep the money and return the wallet, or (3) return both the wallet and the money.” The distribution of responses for the WALLET variable was:
Value | Frequency | |
1 | 24 | keep both |
2 | 50 | keep money |
3 | 121 | return both |
Possible explanatory variables are
MALE | 1= male, 0 = female |
BUSINESS | 1=enrolled in business school, 0=otherwise |
PUNISH | A variable describing whether student was physically punished by parents at various ages: |
Get Logistic Regression Using SAS®: Theory and Application now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.