Modeling Ordered Categorical Data: James J. Dignam
Modeling Ordered Categorical Data: James J. Dignam
James J. Dignam
Yi = j , if d j −1 < Zi ≤ d j
e d j −µi
γi j = P (Zi ≤ d j ) = (1)
1 + e d j −µi
γ1 j /(1 − γ1 j )
log( ) = −β0 (x 1 − x 2 ) (4)
γ2 j /(1 − γ2 j )
(4) is independent of the d ’s, the log odds ratio of being in category C j or
worse is proportional to the difference between x 1 and x 2 where −β is
the constant of proportionality (same for j = 1, 2, ..., k − 1), thus the name
“proportional odds model".
γ
When k = 2, the model is log( 1−γi 1i 1 ) = d1 − β0 x i , where γi 1 = p i 1 , and there
is just 1 cut point. This reduces to the standard logistic regression model
for binary data.
J. Dignam (UChicago) Lecture 10 Feb. 11, 2020 5 / 27
Example: Small Cell Lung Cancer
In a clinical trial evaluating treatment of small cell lung cancer
described by Holtbrugge and Schumacher (1991), two treatment
strategies were compared: sequential therapy (same combination of
chemotherapeutic agents were administered in each treatment cycle)
vs. alternating therapy (three different combinations were given,
alternating between cycles). Data were obtained from 299 patients.
+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−+
| sex therapy category count |
|−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−|
1. | 0 0 1 28 |
2. | 0 0 2 45 |
3. | 0 0 3 29 |
4. | 0 0 4 26 |
|−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−|
5. | 1 0 1 4 |
6. | 1 0 2 12 |
7. | 1 0 3 5 |
8. | 1 0 4 2 |
|−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−|
9. | 0 1 1 41 |
10. | 0 1 2 44 |
11. | 0 1 3 20 |
12. | 0 1 4 20 |
|−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−|
13. | 1 1 1 12 |
14. | 1 1 2 7 |
15. | 1 1 3 3 |
16. | 1 1 4 1 |
+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−+
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
category | Coef . Std . E r r . z P> | z | [95% Conf . I n t e r v a l ]
−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
/ c u t 1 | − .9233248 .1282092 − 1.17461 − .6720393
/ cut2 | .5992511 .1208938 .3623036 .8361986
/ cut3 | 1.629641 .1562311 1.323433 1.935848
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
. estimates store Null
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
category | Coef . Std . E r r . z P> | z | [95% Conf . I n t e r v a l ]
−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
sex | − .5218702 .28707 − 1.82 0.069 − 1.084517 .0407767
−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
/ cut1 | − 1.01504 .138661 − 1.286811 − .7432694
/ cut2 | .5188191 .1285166 .2669312 .770707
/ cut3 | 1.557141 .1609139 1.241756 1.872527
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
. estimates store S
. o l o g i t c a t e g o r y t h e r a p y [w = count ] , nolog
( f r e q u e n c y w e i g h t s assumed )
. t a b t h e r a p y c a t e g o r y [ f w e i g h t = count ] , row c o l
| category
therapy | 1 2 3 4 | Total
−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−+−−−−−−−−−−
0 | 32 57 34 28 | 151
| 21.19 37.75 22.52 18.54 | 100.00
| 37.65 52.78 59.65 57.14 | 50.50
−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−+−−−−−−−−−−
1 | 53 51 23 21 | 148
| 35.81 34.46 15.54 14.19 | 100.00
| 62.35 47.22 40.35 42.86 | 49.50
−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−+−−−−−−−−−−
Total | 85 108 57 49 | 299
| 28.43 36.12 19.06 16.39 | 100.00
| 100.00 100.00 100.00 100.00 | 100.00
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
category | Coef . Std . E r r . z P> | z | [95% Conf . I n t e r v a l ]
−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
sex | − .5413938 .2871816 − 1.89 0.059 − 1.104259 .0214717
therapy | − .580685 .2121478 − 2.74 0.006 − .996487 − .164883
−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
/ c u t 1 | − 1.318043 .1797769 − 1.670399 − .9656869
/ cut2 | .2492335 .1613881 − .0670813 .5655484
/ cut3 | 1.300056 .1849928 .9374766 1.662635
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
. e s t i m a t e s s t o r e ST
. gen s t = sex * t h e r a p y
. o l o g i t c a t e g o r y sex t h e r a p y s t [ w= count ] , nolog
( f r e q u e n c y w e i g h t s assumed )
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
category | Coef . Std . E r r . z P> | z | [95% Conf . I n t e r v a l ]
−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
sex | − .2741906 .3873497 − 0.71 0.479 − 1.033382 .4850008
therapy | − .488071 .2305167 − 2.12 0.034 − .9398754 − .0362666
s t | − .5904159 .5791605 − 1.02 0.308 − 1.72555 .5447177
−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
/ c u t 1 | − 1.275657 .184367 − 1.63701 − .9143045
/ cut2 | .2957159 .1678283 − .0332216 .6246534
/ cut3 | 1.345164 .1905977 .9715991 1.718728
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
. e s t i m a t e s s t o r e SXT
. l r t e s t T Null
. l r t e s t ST T
. l r t e s t ST S
. l r t e s t SXT ST
γ̂i 1
log = −1.318 + 0.541sex + 0.581therapy
1 − γ̂i 1
γ̂i 2
log = .249 + 0.541sex + 0.581therapy
1 − γ̂i 2
γ̂i 3
log = 1.300 + 0.541sex + 0.581therapy
1 − γ̂i 3
Odds Ratios
−−−−−−−−−−−−−−−−−−−−−−
| therapy
sex | 0 1
−−−−−−−−−−+−−−−−−−−−−−
0 | 0.21 0.32
| 0.35 0.37
| 0.22 0.17
| 0.21 0.13
|
1 | 0.32 0.45
| 0.37 0.35
| 0.18 0.12
| 0.14 0.08
−−−−−−−−−−−−−−−−−−−−−−
. t a b l e sex therapy , c ( mean p1 mean cp2 mean cp3 mean cp4 ) f (%5.2 f )
−−−−−−−−−−−−−−−−−−−−−−
| therapy
sex | 0 1
−−−−−−−−−−+−−−−−−−−−−−
0 | 0.21 0.32
| 0.56 0.70
| 0.79 0.87
| 1.00 1.00
|
1 | 0.32 0.45
| 0.69 0.80
| 0.86 0.92
| 1.00 1.00
−−−−−−−−−−−−−−−−−−−−−−
( 1 ) − [ c a t e g o r y ] sex − [ c a t e g o r y ] t h e r a p y + [ c u t 1 ] _cons = 0
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
category | Coef . Std . E r r . z P> | z | [95% Conf . I n t e r v a l ]
−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
( 1 ) | − .1959642 .2892904 − 0.68 0.498 − .7629629 .3710345
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
. d i s p l a y i n v l o g i t ( − .1959642)
.45116513
. * l o w e r bound
. d i s p l a y i n v l o g i t ( − .7629629)
.31800333
. * upper bound
. display i n v l o g i t ( .3710345)
.59170893
. g o l o g i t 2 c a t e g o r y sex t h e r a p y [ f w e i g h t =count ]
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
category | Coef . Std . E r r . z P> | z | [95% Conf . I n t e r v a l ]
−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
1 |
sex | − .3645641 .3443519 − 1.06 0.290 − 1.039481 .3103533
t h e r a p y | − .7317005 .2633247 − 2.78 0.005 − 1.247807 − .2155936
_cons | 1.373901 .2091236 6.57 0.000 .9640261 1.783775
−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
2 |
sex | − .6700663 .3720467 − 1.80 0.072 − 1.399264 .0591318
t h e r a p y | − .5229065 .2458232 − 2.13 0.033 − 1.004711 − .0411019
_cons | − .2566465 .1745179 − 1.47 0.141 − .5986952 .0854023
−−−−−−−−−−−−−+−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
3 |
sex | − 1.171411 .619793 − 1.89 0.059 − 2.386183 .043361
t h e r a p y | − .3439213 .3156354 − 1.09 0.276 − .9625554 .2747128
_cons | − 1.341935 .2158886 − 6.22 0.000 − 1.765069 − .9188013
−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
γ̂i 1
log = −1.374 + 0.365sex + 0.732therapy
1 − γ̂i 1
γ̂i 2
log = 0.257 + 0.670sex + 0.523therapy
1 − γ̂i 2
γ̂i 3
log = 1.342 + 1.171sex + 0.344therapy
1 − γ̂i 3
γ̂i 1
log = −1.318 + 0.541sex + 0.581therapy
1 − γ̂i 1
γ̂i 2
log = .249 + 0.541sex + 0.581therapy
1 − γ̂i 2
γ̂i 3
log = 1.300 + 0.541sex + 0.581therapy
1 − γ̂i 3