STAT 7030 Categorical Data Analysis by Peng Zeng

Codes and Datasets

01. Introduction

02. Review of Probability and Statistics

  • [SAS] [R] Heights of women -- statistical inference for normal distribution
  • [SAS] [R] Children's hair color -- goodness-of-fit test

03. Discrete Distributions and Their Inference

  • [SAS] [R] Opinion on legalization of abortion -- statistical inference for proporition
  • [SAS] [R] Aspirin and heart attack -- odds ratio
  • [R] Children's hair color -- likelihood ratio test

04. Introduction to Generalized Linear Models

  • [SAS] [R] Heart disease and snoring -- binomial data
  • [SAS] [R] Aspirin and heart attack -- 2x2 table
  • [SAS] [R] Horseshoe crabs -- count data
  • [SAS] [R] British train accidents -- rate data
  • [R] Logistic regression -- iteratively reweighted least squares

05. Logistic Regression

  • [SAS] [R] Horseshoe crabs -- logistic regression with one or more predictors
  • [SAS] [R] Maternal alcohol consumption -- logistic regression with a categorical predictor
  • [SAS] [R] Neuralgia -- multiple logistic regression

06. More Discussions on Logistic Regression

  • [SAS] Horseshoe crabs -- variable selection
  • [SAS] Admission to graduate school -- residuals
  • [SAS] Coronary heart disease -- influence diagnostics
  • [SAS] University of Massachusetts Aids Research Unit IMPACT Study (UIS)

07. Multicategory Logit Models

  • [SAS] Alligator food choice -- baseline-category logit model
  • [SAS] Mental health -- proportional odds model
  • [SAS] Horseshoe crabs -- linear discriminant analysis and classification tree

08. Contingency Tables

  • [SAS] Belief in afterlife -- two-way contingency table
  • [SAS] Education and religious beliefs -- test independence of two categorical variable
  • [SAS] Income and job satisfaction -- Test independence for ordinal data
  • [SAS] Death penalty -- Simpson's paradox
  • [SAS] Effects of ATZ on AIDS symptoms
  • [SAS] Clinic trails
  • [SAS] Job satisfaction

09. Log-Linear Models for Contingency Tables

  • [SAS] High school students alcohol, cigarette, marijuana
  • [SAS] Car accidents
  • [SAS] Stillbirth
  • [SAS] Migration -- loglinear model for square table
  • [SAS] Agreement between observers

10. More Examples of Generalized Linear Models

  • [SAS] Fishing -- zero-inflated models
  • [SAS] Air pollution
  • [SAS] Crossover design
  • [SAS] Epileptic seizure episodes


Back to Homepage