



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




sociology ordered logit model
A. binary logistic and ordered logit are the same for two category DV
Consider the cps data on “rich” that were used earlier for logistic models.
1. logit rich edyrs
Iteration 0: log likelihood = -152. Iteration 1: log likelihood = -135. Iteration 2: log likelihood = -132. Iteration 3: log likelihood = -132. Iteration 4: log likelihood = -132.
Logit estimates Number of obs = 515 LR chi2(1) = 40. Prob > chi2 = 0. Log likelihood = -132.26951 Pseudo R2 = 0.
rich | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- edyrs | .4272412 .071766 5.95 0.000 .2865824. _cons | -8.405214 1.095768 -7.67 0.000 -10.55288 -6.
2. ologit rich edyrs
Iteration 0: log likelihood = -152. Iteration 1: log likelihood = -135. Iteration 2: log likelihood = -132. Iteration 3: log likelihood = -132. Iteration 4: log likelihood = -132.
Ordered logit estimates Number of obs = 515 LR chi2(1) = 40. Prob > chi2 = 0. Log likelihood = -132.26951 Pseudo R2 = 0.
rich | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- edyrs | .4272412 .071766 5.95 0.000 .2865824. -------------+---------------------------------------------------------------- _cut1 | 8.405214 1.095768 (Ancillary parameter)
B. fitting ordered logit model by hand
Here’s GSS 1991 data on occupation and schooling:
table a years of schooling
occupation 12 14 16
working class (j=1) 75 21 7
middle class (j=2) 100 32 29
professional (j=3) 28 21 66
the ordered logit model can be written in two ways:
Using the first definition, we have the following table of odds:
table b
years of schooling
occupation 12 14 16
working class (j=1) 75/128 21/53 7/
middle class (j=2) (100+75)/28 (21+32)/21 (7+29)/
and the following table of log odds:
table c
years of schooling
occupation 12 14 16
working class (j=1) -.5345 -.925 -2.
middle class (j=2) 1.832 .925 -.
Now if we enter these data into Stata, like so,
list y1 y0 x odds ln_odds
y1 y0 schl odds ln_odds
then do a simple linear regression of the ln_odds on schooling (Stata thinks n=6):
3. regress ln_odds x
Source | SS df MS Number of obs = 6 -------------+------------------------------ F( 1, 4) = 2. Model | 5.08985596 1 5.08985596 Prob > F = 0. Residual | 6.82534034 4 1.70633508 R-squared = 0. -------------+------------------------------ Adj R-squared = 0. Total | 11.9151963 5 2.38303926 Root MSE = 1.
ln_odds | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- x | -.5640177 .3265669 -1.73 0.159 -1.470713. _cons | 7.576904 4.602933 1.65 0.175 -5.202887 20.
yields the least-squares estimates of the ordered logit model. Contrast this with the earlier l-s estimates
C. Fitting ologit by Maximum likelihood
Estimating the ordered logit model with the same data by the preferred method of maximum likelihood yields:
5. ologit occ educ
Iteration 0: log likelihood = -409. Iteration 1: log likelihood = -368. Iteration 2: log likelihood = -367. Iteration 3: log likelihood = -367.
Ordered logit estimates Number of obs = 379 LR chi2(1) = 82. Prob > chi2 = 0. Log likelihood = -367.98577 Pseudo R2 = 0.
occ | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- educ | .5452836 .06356 8.58 0.000 .4207083. -------------+---------------------------------------------------------------- _cut1 | 6.136561 .8288954 (Ancillary parameters) _cut2 | 8.302312.
Judging from the sign of the coefficient of schooling, Stata fits the second form of the ordered logit model
The educ coefficient above is on the lnodds scale; to convert to odds scale just do exp(b):
6. ologit occ educ,or
Iteration 0: log likelihood = -409. Iteration 1: log likelihood = -368. Iteration 2: log likelihood = -367. Iteration 3: log likelihood = -367.
Ordered logit estimates Number of obs = 379 LR chi2(1) = 82. Prob > chi2 = 0. Log likelihood = -367.98577 Pseudo R2 = 0.
occ | Odds Ratio Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- educ | 1.725098 .1096472 8.58 0.000 1.52304 1.
D. generalized ordered logistic
ologit restricts the coefficient(s) to be the same for all j, all cutpoints.
7. ologit occ educ
Ordered logit estimates Number of obs = 379 LR chi2(1) = 82. Prob > chi2 = 0. Log likelihood = -367.98577 Pseudo R2 = 0.
occ | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- educ | .5452836 .06356 8.58 0.000 .4207083. -------------+---------------------------------------------------------------- _cut1 | 6.136561 .8288954 (Ancillary parameters) _cut2 | 8.302312.
Now we relax the restriction that the coefficients are the same for all j, for all cutpoints.
8. gologit occ educ
Generalized Ordered Logit Estimates Number of obs = 379 Model chi2(2) = 85. Prob > chi2 = 0. Log Likelihood = -366.5961561 Pseudo R2 = 0.
occ | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- mleq1 | educ | .4406523 .0850268 5.18 0.000 .2740029. _cons | -4.816122 1.100598 -4.38 0.000 -6.973255 -2. -------------+---------------------------------------------------------------- mleq2 | educ | .5961832 .0715808 8.33 0.000 .4558874. _cons | -9.040612 1.012394 -8.93 0.000 -11.02487 -7.
Would a LR test accept or reject the ologit restriction againt the alternative model?
For comparison, here are the mlogit results that treats categories of DV as unordered.
9. mlogit occ educ,base(0)
Multinomial logistic regression Number of obs = 379 LR chi2(2) = 86. Prob > chi2 = 0. Log likelihood = -366.01937 Pseudo R2 = 0.
occ | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- 1 | educ | .21778 .0928807 2.34 0.019 .0357372. _cons | -2.359279 1.196794 -1.97 0.049 -4.704952 -. -------------+---------------------------------------------------------------- 2 | educ | .7543395 .0992127 7.60 0.000 .5598863. _cons | -10.1407 1.338011 -7.58 0.000 -12.76315 -7.
(Outcome occ==0 is the comparison group)