Docsity

Logit Analysis of Union Membership: Linear Probability and Logit Models, Study notes of Sociology

Toggle sidebar
bg1
sociology
real simple logit analysis
This exercise uses 1985 cps data on the union membership (union) of men and women (fem=1 for
women). We’ll fit models with a dummy dependent variable for union and a dummy independent
variable for sex.
Here are the data displayed as a table:
+-----------------------+
| fem n yes no |
|-----------------------|
1. | 1 238 27 211 |
2. | 0 277 67 210 |
+-----------------------+
where “yes” means belongs to a union (union=1) and “no” means does not belong to a union (=0. We’ll
first fit the linear probability model and then fit the logit model using the logodds, odds, and probablity
scales.
Before starting with the models, let’s convert the data to the various scales that logit models invoke. I’ll
compute for men and women the proportions who belong to a union, the odds of belonging to a union,
and the log-odds of belonging to a union. The purpose is to satisfy intuition by grounding the parameter
estimates from the models in simple “by hand” computations.
. gen p_yes= yes/n
. gen odds_yes=yes/no
. gen lg_odds_yes=ln(odds_yes)
. list sex p_yes odds_yes lg_odds_yes
+---------------------------------------+
| fem p_yes odds_yes lg_odds~s |
|---------------------------------------|
1. | 1 .1134454 .1279621 -2.056021 |
2. | 0 .2418773 .3190476 -1.142415 |
+---------------------------------------+
linear probability model
. regress union fem
Source | SS df MS Number of obs = 515
-------------+------------------------------ F( 1, 513) = 14.49
Model | 2.11151983 1 2.11151983 Prob > F = 0.0002
Residual | 74.7311986 513 .145674851 R-squared = 0.0275
-------------+------------------------------ Adj R-squared = 0.0256
Total | 76.8427184 514 .149499452 Root MSE = .38167
------------------------------------------------------------------------------
union | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
fem | -.1284319 .033734 -3.81 0.000 -.1947056 -.0621581
_cons | .2418773 .0229326 10.55 0.000 .196824 .2869305
------------------------------------------------------------------------------
docsity.com
pf3

Partial preview of the text

Download Logit Analysis of Union Membership: Linear Probability and Logit Models and more Study notes Sociology in PDF only on Docsity!

sociology

real simple logit analysis

This exercise uses 1985 cps data on the union membership ( union ) of men and women ( fem =1 for

women). We’ll fit models with a dummy dependent variable for union and a dummy independent

variable for sex.

Here are the data displayed as a table:

fem n yes no
  1. | 1 238 27 211 |
  2. | 0 277 67 210 | +-----------------------+

where “yes” means belongs to a union (union=1) and “no” means does not belong to a union (=0. We’ll

first fit the linear probability model and then fit the logit model using the logodds, odds, and probablity

scales.

Before starting with the models, let’s convert the data to the various scales that logit models invoke. I’ll

compute for men and women the proportions who belong to a union, the odds of belonging to a union,

and the log-odds of belonging to a union. The purpose is to satisfy intuition by grounding the parameter

estimates from the models in simple “by hand” computations.

. gen p_yes= yes/n

. gen odds_yes=yes/no

. gen lg_odds_yes=ln(odds_yes)

. list sex p_yes odds_yes lg_odds_yes

fem p_yes odds_yes lg_odds~s
  1. | 1 .1134454 .1279621 -2.056021 |
  2. | 0 .2418773 .3190476 -1.142415 | +---------------------------------------+

linear probability model

. regress union fem

Source | SS df MS Number of obs = 515 -------------+------------------------------ F( 1, 513) = 14. Model | 2.11151983 1 2.11151983 Prob > F = 0. Residual | 74.7311986 513 .145674851 R-squared = 0. -------------+------------------------------ Adj R-squared = 0. Total | 76.8427184 514 .149499452 Root MSE =.


union | Coef. Std. Err. t P>|t| [95% Conf. Interval] -------------+---------------------------------------------------------------- fem | -.1284319 .033734 -3.81 0.000 -.1947056 -. _cons | .2418773 .0229326 10.55 0.000 .196824.


Note that the estimated intercept is the proportion of men (omitted category) who belong to a union:

a =.

and the estimated sex coefficient is the difference in the proportion of male and female union members,

b = (.1134454-.2418773)= -.

logodds scale

For grouped data like we’re using the stata logit regression command is blogit:

. blogit yes n fem

Logit estimates Number of obs = 515 LR chi2(1) = 14. Prob > chi2 = 0. Log likelihood = -237.41662 Pseudo R2 = 0.


_outcome | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- fem | -.9136064 .2479184 -3.69 0.000 -1.399517 -. _cons | -1.142415 .1403114 -8.14 0.000 -1.41742 -.


The estimated coefficients in the regression above are on the log_odds scale. Note that the estimated

constant is just the logodds of being a union member for men:

a = -1.

and the coefficient of fem is just the sex difference in the sample logodds of belonging to a union:

b = (-2.056021 - [-1.142415 ])= -.

plain odds scale

Now we can fit the model on the plain odds scale by merely adding the odds ratio option “or” to the

blogit command:

. blogit yes n fem,or

Logit estimates Number of obs = 515 LR chi2(1) = 14. Prob > chi2 = 0. Log likelihood = -237.41662 Pseudo R2 = 0.


_outcome | Odds Ratio Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- fem | .4010752 .0994339 -3.69 0.000 .246716.


Note that the estimated coefficient of fem is just the ratio of the female odds to the male odds of

belonging to a union:

OR = .1279621/.3190476 =.