Qualitative Response Models
Qualitative Response Models
Presented by Yan Hu
Y = β0 + β 1X1 + ui
Where X = family income
Y = 1 if the family owns a house
= 0 if the family does not own a house
Ui = the disturbance term
• The independent variable Xi can be discrete or continuous
variable
Yi Prob.
1 Pi
0 1-Pi
Total 1
parameters is unaffected by having a binary outcome, several assumptions of the LPM are
necessarily violated.
Yi = β0 + β 1X1+ ui
Then, Var(Ui) = E(Ui2) = (β0 - β 1X1 i)2 (1-Pi) + (1- β0 - β 1X1 )2 (Pi)
•Hence, it is hetrosckedastic, because it depends on the value taken by X.
•Thus the OLS estimator of βi is inefficient and the standard errors are biased, resulting in
incorrect test.
Var(ui)=Pi(1-Pi), the variance is a function of the mean (Pi).
One way to solvewthe heteroskedasticity is to transform the model by dividing it by
i p i (1 - p i )
the weights . Then, estimate the transformed equation by OLS.
Yi 1 Xi ui
2
wi wi wi wi
0 X
06/07/25 Econ 2062 12
What is the Logit Model?
From the logistic distribution,
1-P = e-βX / (1+e-βX)
P/(1-P) = eβX, odds ratio
log[p/(1-P)] = βX
data incomes1;
set incomes;
phat=n1/n;
lhat=log(phat/(1-phat));
w=n*phat*(1-phat);
wsquar=sqrt(w);
lstar=round(lhat*wsquar, 0.0001);
xstar=round(income*wsquar, 0.0001);
run;
Zi
Pi 1 e Zi 1.59324W *i 0.07867 X *i
Zi
e e
1 Pi 1 e
For a unit increase in weighted income, the
(weighted) odds in favor of owing a house
increase by 1.082 (e0.07867) or about 8.17%.
grade in an 1 2.66 20 0 0 C
intermediate 2 2.89 22 0 0 B
microeconomics
3 3.28 24 0 0 B
course was A and Y=0
if the final grade was B 4 2.92 12 0 0 B
Method 2:
Use SAS or R program directly.
Run; 8
10
50
60
12
18
13 80 28
15 100 45
proc genmod data=incomes; 20 70 36
class ; 25
30
65
50
39
33
model n1/n = income / dist = bin 35 40 30
40 25 20
Link =
probit names(incomes) <- c(“income”,”N”, “N1”)
lrci; N0 <- incomes$N- incomes$N1
run; glmA <- glm(cbind(N1, N0)~income,
incomes, family=binomial(link=”probit”))
0
06/07/25 Econ 2062 34
Reading
Damodar N. Gujarati,
Basic Econometrics,
P580-615