Categorical Data Analysis with Graphics
Michael Friendly
SCS Short Course
May 16, 2003
Contents
1 Framework for Categorical Data 1
2 Plots for discrete distributions 3
2.1 Fitting discrete distributions . . . . . . 4
2.2 Poissonness plot . . . . . . . . . . . . . 7
2.3 Ord plots . . . . . . . . . . . . . . . . 9
3 Association for Two-Way Tables 11
3.1 Overall analysis . . . . . . . . . . . . . 13
3.2 Tests for ordinal variables . . . . . . . . 14
3.3 Sample CMH Proles . . . . . . . . . . 15
3.4 Stratied Analysis . . . . . . . . . . . . 16
4 Plots for two-way frequency tables 19
4.1 Sieve diagrams . . . . . . . . . . . . . 19
4.2 Association plot for two-way tables . . 21
5 Observer Agreement chart 23
5.1 Measuring agreement . . . . . . . . . . 23
5.2 Observer Agreement Chart . . . . . . . 26
5.3 Observer bias . . . . . . . . . . . . . . 29
5.4 Four-fold display for 2 x 2 tables . . . . 31
6 Mosaic displays for n-way tables 33
6.1 Condensed mosaic . . . . . . . . . . . 33
6.2 Multi-way tables . . . . . . . . . . . . 33
6.3 Fitting models . . . . . . . . . . . . . . 33
6.4 Sequential plots and models . . . . . . 34
7 Correspondence analysis 35
7.1 PROC CORRESP . . . . . . . . . . . . 36
7.2 Multi-way tables . . . . . . . . . . . . 39
8 Logistic Regression 43
8.1 Logistic Regression Model . . . . . . . 43
8.2 Fitting Logistic Regression Models . . . 45
8.3 Quantitative predictors . . . . . . . . . 47
8.4 Models with interaction . . . . . . . . . 56
8.5 Ordinal response . . . . . . . . . . . . 57
8.6 Polytomous response . . . . . . . . . . 61
8.7 Inuence and diagnostic plots . . . . . 68
9 Plots for logit models 70
9.1 Example . . . . . . . . . . . . . . . . . 71
9.2 Nominal main effects . . . . . . . . . . 72
9.3 Other models . . . . . . . . . . . . . . 74
10 Loglinear models 77
10.1 Fitting Loglinear Models . . . . . . . . 79
10.2 Using PROC CATMOD . . . . . . . . . 80
10.3 Inuence and diagnostic plots . . . . . 82
11 Sequential analysis 86
11.1 Analyzing time sequences . . . . . . . 86
11.2 Lag-sequential analysis . . . . . . . . . 89
11.3 Extensions . . . . . . . . . . . . . . . . 92
11.4 Multiple sessions, streams and durations 95
压缩文件大小=3.17MB