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:

ValueFrequency 
124keep both
250keep money
3121return both

Possible explanatory variables are

MALE1= male, 0 = female
BUSINESS1=enrolled in business school, 0=otherwise
PUNISHA 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.