Here are the SAS programs for the examples done in class and for some of the examples in the text.

- Income and job satisfaction (Pearson's chi-square and likelihood ratio tests of independence):
- Exercise 2.15:
- Fisher's Tea-Tasting Experiment (Fisher's exact test):
- Death penalty data (Cochran-Mantel-Haenszel test):
- Chinese smoking and lung cancer data (Cochran-Mantel-Haenszel test):
- Exercise 3.8 (and 3.9) (Passive smoking):
- Infant malformation example (linear probability model and logistic regression):
- Wafer defects example (comparing two Poisson means)
- Poisson loglinear model for grouped Crab data
- Poisson and logistic models for ungrouped crab data (produced the long handout in class)
- Exercise 4.11: SAS program
- Exercise 4.16 (Poisson loglinear model with offset and a bit of a strange model at the end)
- Logistic regression with grouped crab data (goodness-of-fit and residuals)
- Death penalty data: logistic regression analysis
- Exercise 5.6 (logistic regression of gender on party affiliation): SAS program
- Income and job satisfaction via loglinear model
- Exercise 6.7 (loglinear models for busing, president, and dinner): SAS program
- Exercise 8.3 (baseline-category logit model for belief in afterlife): SAS program
- Exercise 8.4 (baseline-category logit models for presidential vote): SAS program
- Exercise 8.6 (proportional odds model for frequency of breast self examination): SAS program (I think this is correct, but I haven't checked the output carefully yet).

Brett Presnell <presnell@stat.ufl.edu> Last modified: Wed Apr 19 22:27:31 EDT 2000