This action might not be possible to undo. Are you sure you want to continue?
https://www.scribd.com/doc/91679077/ProbitLogitIndiana
05/14/2013
text
original
Uni v er s i t y I nf or mat i on Tec hnol ogy Ser vi c es
Regression Models for Binary Dependent Variables Using
Stata, SAS, R, LIMDEP, and SPSS
*
Hun Myoung Park, Ph.D.
kucc625@indiana.edu
© 20032010
Last modified on October 2010
University Information Technology Services
Center for Statistical and Mathematical Computing
Indiana University
410 North Park Avenue Bloomington, IN 47408
(812) 8554724 (317) 2784740
http://www.indiana.edu/~statmath
*
The citation of this document should read: “Park, Hun Myoung. 2009. Regression Models for Binary Dependent
Variables Using Stata, SAS, R, LIMDEP, and SPSS. Working Paper. The University Information Technology
Services (UITS) Center for Statistical and Mathematical Computing, Indiana University.”
http://www.indiana.edu/~statmath/stat/all/cdvm/index.html
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 2
http://www.indiana.edu/~statmath 2
This document summarizes logit and probit regression models for binary dependent variables
and illustrates how to estimate individual models using Stata 11, SAS 9.2, R 2.11, LIMDEP 9,
and SPSS 18.
1. Introduction
2. Binary Logit Regression Model
3. Binary Probit Regression Model
4. Bivariate Probit Regression Models
5. Conclusion
References
1. Introduction
A categorical variable here refers to a variable that is binary, ordinal, or nominal. Event count
data are discrete (categorical) but often treated as continuous variables. When a dependent
variable is categorical, the ordinary least squares (OLS) method can no longer produce the best
linear unbiased estimator (BLUE); that is, OLS is biased and inefficient. Consequently,
researchers have developed various regression models for categorical dependent variables. The
nonlinearity of categorical dependent variable models makes it difficult to fit the models and
interpret their results.
1.1 Regression Models for Categorical Dependent Variables
In categorical dependent variable models, the lefthand side (LHS) variable or dependent
variable is neither interval nor ratio, but rather categorical. The level of measurement and data
generation process (DGP) of a dependent variable determine a proper model for data analysis.
Binary responses (0 or 1) are modeled with binary logit and probit regressions, ordinal
responses (1
st
, 2
nd
, 3
rd
, …) are formulated into (generalized) ordinal logit/probit regressions,
and nominal responses are analyzed by the multinomial logit (probit), conditional logit, or
nested logit model depending on specific circumstances. Independent variables on the right
hand side (RHS) are interval, ratio, and/or binary (dummy).
Table 1.1 Ordinary Least Squares and Categorical Dependent Variable Models
Model Dependent (LHS) Estimation Independent (RHS)
OLS
Ordinary least
squares
Interval or ratio
Moment based
method
A linear function of
interval/ratio or binary
variables
...
2 2 1 1 0
X X    + +
Categorical
DV Models
Binary response Binary (0 or 1)
Maximum
likelihood
method
Ordinal response Ordinal (1
st
, 2
nd
, 3
rd
…)
Nominal response Nominal (A, B, C …)
Event count data Count (0, 1, 2, 3…)
Categorical dependent variable models adopt the maximum likelihood (ML) estimation method,
whereas OLS uses the moment based method. The ML method requires an assumption about
probability distribution functions, such as the logistic function and the complementary loglog
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 3
http://www.indiana.edu/~statmath 3
function. Logit models use the standard logistic probability distribution, while probit models
assume the standard normal distribution. This document focuses on logit and probit models
only, excluding regression models for event count data (e.g., negative binomial regression
model and zeroinflated or zerotruncated regression models). Table 1.1 summarizes
categorical dependent variable models in comparison with OLS.
1.2 Logit Models versus Probit Models
How do logit models differ from probit models? The core difference lies in the distribution of
errors (disturbances). In the logit model, errors are assumed to follow the standard logistic
distribution with mean 0 and variance
3
2
t
,
2
) 1 (
) (
c
c
c ì
e
e
+
= . The errors of the probit model are
assumed to follow the standard normal distribution,
2
2
2
1
) (
c
t
c 
÷
= e with variance 1.
Figure 1.1 The Standard Normal and Standard Logistic Probability Distributions
PDF of the Standard Normal Distribution CDF of the Standard Normal Distribution
PDF of the Standard Logistic Distribution CDF of the Standard Logistic Distribution
The probability density function (PDF) of the standard normal probability distribution has a
higher peak and thinner tails than the standard logistic probability distribution (Figure 1.1). The
standard logistic distribution looks as if someone has weighed down the peak of the standard
normal distribution and strained its tails. As a result, the cumulative density function (CDF) of
the standard normal distribution is steeper in the middle than the CDF of the standard logistic
distribution and quickly approaches zero on the left and one on the right.
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 4
http://www.indiana.edu/~statmath 4
The two models, of course, produce different parameter estimates. In binary response models,
the estimates of a logit model are roughly 3 t times larger than those of the probit model.
These estimators, however, end up with almost the same standardized impacts of independent
variables (Long 1997).
The choice between logit and probit models is more closely related to estimation and
familiarity than to theoretical or interpretive aspects. In general, logit models reach
convergence fairly well. Although some (multinomial) probit models may take a long time to
reach convergence, a probit model works well for bivariate models. As computing power
improves and new algorithms are developed, importance of this issue is diminishing. For
discussion of selecting logit or probit models, see Cameron and Trivedi (2009: 471474).
1.3 Estimation in SAS, Stata, LIMDEP, R, and SPSS
Table 1.2 summarizes the procedures and commands used for categorical dependent variable
models. Note that Stata and R are casesensitive, but SAS, LIMDEP, and SPSS are not.
Table 1.2 Procedures and Commands for Categorical Dependent Variable Models
Model Stata 11 SAS 9.2 R LIMDEP 9 SPSS17
OLS
.regress REG lme() Regress$ Regression
Binary
Binary logit
.logit,
.logistic
QLIM,
LOGISTIC,
GENMOD,
PROBIT
glm()
Logit$ Logistic
regression
Binary
probit
.probit
QLIM,
LOGISTIC,
GENMOD,
PROBIT
glm()
Probit$ Probit
Bivariate
Bivariate
probit
.biprobit
QLIM
bprobit()
Bivariateprobit$ 
Ordinal
Ordinal
logit
.ologit
QLIM,
LOGISTIC,
GENMOD,
PROBIT
lrm()
Ordered$,
Logit$
Plum
Generalized
logit
.gologit2
*

logit()
 
Ordinal
probit
.oprobit
QLIM,
LOGISTIC,
GENMOD,
PROBIT
polr()
Ordered$ Plum
Nominal
Multinomial
logit
.mlogit
LOGISTIC,
CATMOD
multinom(),
mlogit()
Mlogit$, Logit$ Nomreg
Conditional
logit
.clogit
LOGISTIC,
MDC,
PHREG
clogit()
Clogit$, Logit$ Coxreg
Nested logit
.nlogit
MDC

Nlogit$
**

Multinomial
probit
.mprobit

mnp()
 
* A userwritten command written by Williams (2005)
** The Nlogit$ command is supported by NLOGIT, a standalone package, which is sold separately.
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 5
http://www.indiana.edu/~statmath 5
Stata offers multiple commands for categorical dependent variable models. For example,
the .logit and .probit commands respectively fit the binary logit and probit models,
while .mlogit and .nlogit estimate the mulitinomial logit and nested logit models. Stata
enables users to perform posthoc analyses such as marginal effects and discrete changes in an
easy manner.
SAS provides several procedures for categorical dependent variable models, such as PROC
LOGISTIC, PROBIT, GENMOD, QLIM, MDC, PHREG, and CATMOD. Since these
procedures support various models, a categorical dependent variable model can be estimated by
multiple procedures. For example, you may run a binary logit model using PROC LOGISTIC,
QLIM, GENMOD, and PROBIT. PROC LOGISTIC and PROC PROBIT of SAS/STAT have
been commonly used, but PROC QLIM and PROC MDC of SAS/ETS have advantages over
other procedures. PROC LOGISTIC reports factor changes in the odds and tests key
hypotheses of a model. The QLIM (Qualitative and LImited dependent variable Model)
procedure in SAS analyzes various categorical and limited dependent variable regression
models such as censored, truncated, and sampleselection models. PROC QLIM also handles
BoxCox regression and the bivariate probit model. The MDC (Multinomial Discrete Choice)
procedure can estimate conditional logit and nested logit models.
1
In R, glm() fits binary logit and probit models in the object oriented programming concept.
Multiple other functions have been developed to fit other categorical dependent variable
models. The LIMDEP Logit$ and Probit$ commands support a variety of categorical
dependent variable models that are addressed in Greene‟s Econometric Analysis (2003). The
output format of LIMDEP 9 is slightly different from that of previous version, but key statistics
remain unchanged. The nested logit model and multinomial probit model in LIMDEP are
estimated by NLOGIT, a separate package. SPSS also supports some categorical dependent
variable models and its output is often messy and hard to read.
1.4 Long and Freese’s SPost
Stata users may benefit from userwritten commands such as J. Scott Long and Jeremy Freese‟s
SPost. This collection of userwritten commands conducts many followup analyses of various
categorical dependent variable models including event count data models. See section 2.2 for
the most common SPost commands.
In order to install SPost, execute the following commands consecutively. Visit J. Scott Long‟s
Web site at http://www.indiana.edu/~jslsoc/ to get further information.
. net from http://www.indiana.edu/~jslsoc/stata/
. net install spost9_ado, replace
. net get spost9_do, replace
1
An advantage of using SAS is the Output Delivery System (ODS), which makes it easy to manage SAS output.
ODS enables users to redirect the output to HTML (Hypertext Markup Language) and RTF (Rich Text Format)
formats. Once SAS output is generated in an HTML document, users can easily handle tables and graphics
especially when copying and pasting them into a wordprocessor document.
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 6
http://www.indiana.edu/~statmath 6
If a Stata command, function, or userwritten command does not work in version 11, run
the .version command to switch the interpreter to old one and execute that command again.
For example, normal() was norm() in old versions.
. version 9
Also you may update Stata or reinstall userwritten commands to get their latest version
installed.
. update all
2. Binary Logit Regression Model
The binary logit model is represented as
) exp( 1
) exp(
) ( )  1 Prob(



x
x
x x y
+
= A = = , where Λ
indicates a link function, the cumulative standard logistic distribution function. This chapter
illustrates how to fit the binary logit model. The sample model considered here explores how
social trust is affected by education, family income, age, gender, and Internet use (www).
2.1 Binary Logit Model in Stata (.logit)
Stata provides two equivalent commands for the binary logit model that present the same result
in different ways. The .logit command produces coefficients with respect to logit (log of
odds), while .logistic reports odd ratios.
. logistic trust educate income age male www
Logistic regression Number of obs = 1174
LR chi2(5) = 128.68
Prob > chi2 = 0.0000
Log likelihood = 733.97164 Pseudo R2 = 0.0806

trust  Odds Ratio Std. Err. z P>z [95% Conf. Interval]
+
educate  1.163673 .0304619 5.79 0.000 1.105474 1.224935
income  1.030814 .0118919 2.63 0.009 1.007768 1.054387
age  1.028411 .0050091 5.75 0.000 1.01864 1.038276
male  1.292781 .162669 2.04 0.041 1.010228 1.654362
www  1.739745 .2885914 3.34 0.001 1.25686 2.408153

This model fits the data very well (p<.0000) and all independent variables except for gender are
statistically significant at the .01 level. Interpretation of the odds ratio will be discussed in
Section 2.2. In order to get the coefficients (log of odds), simply run .logit without any
argument right after the .logistic command.
. logit
(output is skipped)
Or you may run a separate .logit command with all arguments. Both commands report the
same goodnessoffit measures such as likelihood ratio and McFadden‟s pseudo R
2
.
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 7
http://www.indiana.edu/~statmath 7
. logit trust educate income age male www
Iteration 0: log likelihood = 798.31217
Iteration 1: log likelihood = 734.25733
Iteration 2: log likelihood = 733.97169
Iteration 3: log likelihood = 733.97164
Logistic regression Number of obs = 1174
LR chi2(5) = 128.68
Prob > chi2 = 0.0000
Log likelihood = 733.97164 Pseudo R2 = 0.0806

trust  Coef. Std. Err. z P>z [95% Conf. Interval]
+
educate  .1515812 .0261774 5.79 0.000 .1002745 .2028879
income  .0303485 .0115364 2.63 0.009 .0077376 .0529595
age  .0280152 .0048707 5.75 0.000 .0184688 .0375616
male  .256796 .1258287 2.04 0.041 .0101762 .5034157
www  .5537383 .1658815 3.34 0.001 .2286165 .8788601
_cons  4.983007 .478359 10.42 0.000 5.920574 4.045441

A coefficient of .logit is the corresponding logarithmic transformed odds ratio of .logistic.
For example, the coefficient of education is .1516= log(1.1637) or 1.1637=exp(.1516).
Stata has postestimation commands that conduct followup analyses. The following .predict
command with the residual option computes residuals and then stores them into a new
variable resid.
. predict resid, residual
The .test and .lrtest commands respectively conduct the Wald test and likelihood ratio test.
A large chisquared rejects the null hypothesis that the parameter of education is zero.
Education has a significant positive impact on social trust.
. test educate
( 1) [trust]educate = 0
chi2( 1) = 33.53
Prob > chi2 = 0.0000
Marginal effects and discrete changes are very useful when interpreting the result of a binary
logit or probit model. The marginal effect of a continuous independent variable
c
x is the partial
derivative with respect to that variable. The discrete change of a binary independent variable
(dummy variable)
b
x is the difference in predicted probabilities of 1 =
b
x and 0 =
b
x , holding
all other independent variables constant at their reference points.
b
x
÷
denotes all independent
variables other than
b
x Marginal effects and discrete changes look similar but are not equal in
conceptual and numerical senses.
c
c
x x
x
x
x
x y P
  


) ( 1 )( (
)] exp( 1 [
) exp( )  1 (
2
A ÷ A =
+
=
c
= c
(marginal effect of
c
x )
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 8
http://www.indiana.edu/~statmath 8
) 0 ,  1 ( ) 1 ,  1 (
)  1 (
= = ÷ = = =
A
= A
÷ ÷ b b b b
b
x x y P x x y P
x
x y P
(discrete change of
b
x )
The .mfx command with dydx (partial derivatives), the default option, computes marginal
effects for continuous covariates and discrete changes for binary variables at the reference
points after the estimation of a linear or nonlinear regression model. You may change reference
points using the at() option; If this option is not specified, Stata by default uses means of
independent variables as reference points. mean in the at() option below says that if a
covariate is not listed in at(), its mean is used as its reference point.
. mfx, dydx at(mean educate=16 male=0 www=1)
Marginal effects after logit
y = Pr(trust) (predict)
= .47534926

variable  dy/dx Std. Err. z P>z [ 95% C.I. ] X
+
educate  .0378032 .0066 5.73 0.000 .024873 .050734 16
income  .0075687 .00287 2.63 0.008 .001934 .013203 24.6486
age  .0069868 .00121 5.75 0.000 .004606 .009367 41.3075
male* .0640968 .03132 2.05 0.041 .002718 .125475 0
www* .1329051 .03797 3.50 0.000 .058487 .207323 1

(*) dy/dx is for discrete change of dummy variable from 0 to 1
The predicted probability of trusting most people is .4753 for female WWW users at the
average age of 41 who graduated a college (16 years of education) and have average family
income of 25 thousands dollars. Marginal effects and discrete changes are listed under dy/dx.
For a year increase in education after college graduation, the predicted probability of trusting
people will increase by 3.78 percent, holding other independent variables constant at the
reference points (see the list of values under the label x). WWW users are 13.29 percent more
likely than nonusers to trust people, holding other covariates at the reference points.
2.2 Using SPost Commands in Stata
SPost commands provide useful followup analysis commands (ado files) for categorical
dependent variable models (Long and Freese 2003). The .fitstat command reports various
goodnessoffit measures such as log likelihood, McFadden‟s R
2
(or Pseudo R
2
), Akaike
Information Criterion (AIC), and Bayesian Information Criterion (BIC). 1467.943 labeled as
D(1168) is 2*Loglikelihood (=2*733.972) and 1,168=NK=1,1746, where K denotes the
number of parameters including the intercept.
. net install spost9_ado, replace from(http://www.indiana.edu/~jslsoc/stata/)
checking spost9_ado consistency and verifying not already installed...
. fitstat
LogLik Intercept Only: 798.312 LogLik Full Model: 733.972
D(1168): 1467.943 LR(5): 128.681
Prob > LR: 0.000
McFadden's R2: 0.081 McFadden's Adj R2: 0.073
ML (CoxSnell) R2: 0.104 CraggUhler(Nagelkerke) R2: 0.140
McKelvey & Zavoina's R2: 0.140 Efron's R2: 0.105
Variance of y*: 3.826 Variance of error: 3.290
Count R2: 0.654 Adj Count R2: 0.175
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 9
http://www.indiana.edu/~statmath 9
AIC: 1.261 AIC*n: 1479.943
BIC: 6787.682 BIC': 93.340
BIC used by Stata: 1510.352 AIC used by Stata: 1479.943
The likelihood ratio statistic is based on the difference of log likelihoods between the null
model and the full model. 128.68=2*[(798.312)(733.972)].
The binary logit (log of the odds) model can be expressed in a loglinear form of  x x = O ) ( ln ,
where ) (x O is the odds of the success (y=1) given x (Long 1997: 79). The odds ratio is used to
examine the change in the odds when an independent variable
odds
x increases by o ; a odds
ratio greater than 1 means that the odds increase as that variable increase by o (pp. 8082).
The odds:
) ( 1
) (
)  1 ( 1
)  1 (
)  0 (
)  1 (
) (


x
x
x y P
x y P
x y P
x y P
x
A ÷
A
=
= ÷
=
=
=
=
= O
Odds ratio: ) exp(
) , (
) , (
o 
o
odds
odds odds
odds odds
x x
x x
=
O
+ O
÷
÷
The .listcoef command produces a table of unstandardized coefficients (parameter
estimates), factor (percent) changes in odds, and standardized coefficients. The help option
helps read the output of .listcoef. Find factor changes in odds under the labels e^b and
e^bStdX. Factor changes in odds are, in fact, the odds ratios that .logistic produced on page 6.
Long (1997) discusses interpretation of binary response models using factor changes in odds
and predicted probabilities. For a unit increase in education, for example, the odds are expected
to increase by a factor of 1.1637=exp(.1516). Alternatively, for a standard deviation change in
education, the odds will change by a factor of 1.4763=exp(.1516*2.5697). Notice that the last
column under SDofX lists standard deviations of covariates. The odds of trusting people are
1.2928=exp(.2568) times larger for men than for women, holding all other variables constant.
. listcoef, help
logit (N=1174): Factor Change in Odds
Odds of: 1 vs 0

trust  b z P>z e^b e^bStdX SDofX
+
educate  0.15158 5.791 0.000 1.1637 1.4763 2.5697
income  0.03035 2.631 0.009 1.0308 1.2068 6.1943
age  0.02802 5.752 0.000 1.0284 1.4559 13.4071
male  0.25680 2.041 0.041 1.2928 1.1364 0.4978
www  0.55374 3.338 0.001 1.7397 1.2554 0.4108

b = raw coefficient
z = zscore for test of b=0
P>z = pvalue for ztest
e^b = exp(b) = factor change in odds for unit increase in X
e^bStdX = exp(b*SD of X) = change in odds for SD increase in X
SDofX = standard deviation of X
You may interpret factor change in odds in a reverse way. Pay attention to reverse of
the .listcoef command. For a standard deviation change in education, the odds of having NO
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 10
http://www.indiana.edu/~statmath 10
social trust are expected to decrease by a factor of .6774=exp(.1516*2.5697). The odds of
NOT trusting people are .7735=exp(.2568) times smaller for men than for women. The labels
e^b and e^bStdX below should be e^(b) and e^(bStdX), respectively.
. listcoef, reverse
logit (N=1174): Factor Change in Odds
Odds of: 0 vs 1

trust  b z P>z e^b e^bStdX SDofX
+
educate  0.15158 5.791 0.000 0.8593 0.6774 2.5697
income  0.03035 2.631 0.009 0.9701 0.8286 6.1943
age  0.02802 5.752 0.000 0.9724 0.6869 13.4071
male  0.25680 2.041 0.041 0.7735 0.8800 0.4978
www  0.55374 3.338 0.001 0.5748 0.7966 0.4108

Alternatively, you may use percent changes in the odds by adding the percent option. For
example, the odds of trusting people are 29.3 percent larger for men than for women, holding
all other covariates constant.
. listcoef, percent help
logit (N=1174): Percentage Change in Odds
Odds of: 1 vs 0

trust  b z P>z % %StdX SDofX
+
educate  0.15158 5.791 0.000 16.4 47.6 2.5697
income  0.03035 2.631 0.009 3.1 20.7 6.1943
age  0.02802 5.752 0.000 2.8 45.6 13.4071
male  0.25680 2.041 0.041 29.3 13.6 0.4978
www  0.55374 3.338 0.001 74.0 25.5 0.4108

b = raw coefficient
z = zscore for test of b=0
P>z = pvalue for ztest
% = percent change in odds for unit increase in X
%StdX = percent change in odds for SD increase in X
SDofX = standard deviation of X
The .prvalue command lists predicted probabilities of positive and negative outcomes for a
given set of values for the independent variables. The following example predicts, as shown
in .mfx above, that 47.53 percent of female WWW users will trust most people at the reference
points (educate=16, income=24.65, age=41.31), while 52.47 percent will not.
. prvalue, x(educate=16 male=0 www=1) rest(mean)
logit: Predictions for trust
Confidence intervals by delta method
95% Conf. Interval
Pr(y=1x): 0.4753 [ 0.4277, 0.5230]
Pr(y=0x): 0.5247 [ 0.4770, 0.5723]
educate income age male www
x= 16 24.648637 41.307496 0 1
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 11
http://www.indiana.edu/~statmath 11
The .prtab command constructs a table of predicted values (probabilities) for all combinations
of categorical variables listed. Both .prtab and .prvalue report the same predicted
probability of .4753 that female WWW users trust most people. The table below suggests that
male WWW users are more likely to trust than their counterparts (53.94 percent versus 34.24
percent, respectively). The x() option specifies particular values of covariates other than their
means as reference points. The rest() option sets the reference points of independent variables
that are not specified in x().
. prtab male www, x(educate=16 male=0 www=1) rest(mean)
logit: Predicted probabilities of positive outcome for trust

 WWW Use
Gender  Nonusers Users
+
Female  0.3424 0.4753
Male  0.4024 0.5394

educate income age male www
x= 16 24.648637 41.307496 0 1
The most useful command for binary response models is .prchange, which calculates marginal
effects and discrete changes at a given set of values of independent variables. The predicted
probability of .4753 and the marginal effects (discrete changes) are the same as what .mfx
produced above. Read marginal effects under the last MargEfct (or +1/2) column and discrete
changes under 0>1 (when changing the value from 0 to 1). For an additional year of education
after college, the predicted probability of trusting people is expected to increase by 3.78 percent
(marginal effect) when holding all other covariates constant at their reference points. WWW
users are 13.29 percent (discrete change) more likely than nonusers to trust people, holding
other variable at their reference points.
. prchange, x(educate=16 male=0 www=1) rest(mean)
logit: Changes in Probabilities for trust
min>max 0>1 +1/2 +sd/2 MargEfct
educate 0.5264 0.0111 0.0378 0.0968 0.0378
income 0.1936 0.0064 0.0076 0.0468 0.0076
age 0.4397 0.0049 0.0070 0.0934 0.0070
male 0.0641 0.0641 0.0640 0.0319 0.0640
www 0.1329 0.1329 0.1372 0.0567 0.1381
0 1
Pr(yx) 0.5247 0.4753
educate income age male www
x= 16 24.6486 41.3075 0 1
sd_x= 2.56971 6.19427 13.4071 .497765 .410755
SPost .prgen computes a series of predictions (predicted probabilities in this case) by holding
all variables but one interval variable constant and allowing that variable to vary (Long and
Freese 2003). The first command below computes predicted probabilities that male WWW
users (male=1 and www=1) trust most people when education changes from 0 through 20 years,
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 12
http://www.indiana.edu/~statmath 12
holding other independent variables at the reference points, and then stores them into new
variables, whose names begin with Logit_ed11.
. prgen educate, from(0) to(20) ncases(20) x(male=1 www=1) rest(mean) gen(Logit_ed11)
logit: Predicted values as educate varies from 0 to 20.
educate income age male www
x= 14.24276 24.648637 41.307496 1 1
. prgen educate, from(0) to(20) ncases(20) x(male=1 www=0) rest(mean) gen(Logit_ed10)
logistic: Predicted values as educate varies from 0 to 20.
educate income age male www
x= 14.24276 24.648637 41.307496 1 0
. prgen educate, from(0) to(20) ncases(20) x(male=0 www=1) rest(mean) gen(Logit_ed01)
logistic: Predicted values as educate varies from 0 to 20.
educate income age male www
x= 14.24276 24.648637 41.307496 0 1
. prgen educate, from(0) to(20) ncases(20) x(male=0 www=0) rest(mean) gen(Logit_ed00)
logistic: Predicted values as educate varies from 0 to 20.
educate income age male www
x= 14.24276 24.648637 41.307496 0 0
Figure 2.1 Predicted Probabilities of Trusting Most People (Binary Logit Model)
0
.
2
.
4
.
6
.
8
1
1 3 5 7 9 11 13 15 17 19 1 3 5 7 9 11 13 15 17 19
WWW Nonusers WWW Users
Men Women
P
r
e
d
i
c
t
e
d
P
r
o
b
a
b
i
l
i
t
i
e
s
Education (Years)
Graphs by bygroup
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 13
http://www.indiana.edu/~statmath 13
After generating predicted probabilities of other groups (male WWW nonusers, female users,
and female nonusers), you can draw Figure 2.1. See the Stata script in Appendix for necessary
data manipulation. Figure 2.1 suggests that education and WWW use influence social trust
significantly but gender does not.
2.3 Binary Logit Model in SAS: PROC LOGISTIC and PROC PROBIT
SAS has several procedures for the binary logit model such as LOGISTIC, PROBIT,
GENMOD, and QLIM procedures. PROC LOGISTIC is commonly used for the binary logit
model, but PROC PROBIT is also able to estimate the binary logit model.
Unlike PROC QLIM, LOGISTIC, PROBIT, and GENMOD procedures by default use a
smaller value in the dependent variable as success (positive event). As a consequence,
magnitudes of the coefficients remain the same, but their signs are opposite to those of PROC
QLIM, Stata, and LIMDEP. The DESCENDING (DESC) option in PROC LOGISTIC and
PROC GENMOD forces SAS to use a larger value as success. Notice that a SAS procedure is
comprised of a series of statements, each of which ends with a semicolon.
PROC LOGISTIC DESCENDING DATA = masil.gss_cdvm;
MODEL trust = educate income age male www;
RUN;
Alternatively, you may explicitly specify the category of successful event using the EVENT
option. EVENT=LAST (or EVENT=‟1‟) use the last ordered category (1) as a successful event.
Both approaches produce the same results.
PROC LOGISTIC DATA = masil.gss_cdvm;
MODEL trust(EVENT=LAST) = educate income age male www;
RUN;
The LOGISTIC Procedure
Model Information
Data Set MASIL.GSS_CDVM
Response Variable trust trust
Number of Response Levels 2
Model binary logit
Optimization Technique Fisher's scoring
Number of Observations Read 1174
Number of Observations Used 1174
Response Profile
Ordered Total
Value trust Frequency
1 1 492
2 0 682
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 14
http://www.indiana.edu/~statmath 14
Probability modeled is trust=1.
Model Convergence Status
Convergence criterion (GCONV=1E8) satisfied.
Model Fit Statistics
Intercept
Intercept and
Criterion Only Covariates
AIC 1598.624 1479.943
SC 1603.693 1510.352
2 Log L 1596.624 1467.943
Testing Global Null Hypothesis: BETA=0
Test ChiSquare DF Pr > ChiSq
Likelihood Ratio 128.6811 5 <.0001
Score 121.5344 5 <.0001
Wald 109.6453 5 <.0001
Analysis of Maximum Likelihood Estimates
Standard Wald
Parameter DF Estimate Error ChiSquare Pr > ChiSq
Intercept 1 4.9830 0.4784 108.5101 <.0001
educate 1 0.1516 0.0262 33.5302 <.0001
income 1 0.0303 0.0115 6.9200 0.0085
age 1 0.0280 0.00487 33.0824 <.0001
male 1 0.2568 0.1258 4.1650 0.0413
www 1 0.5537 0.1659 11.1431 0.0008
Odds Ratio Estimates
Point 95% Wald
Effect Estimate Confidence Limits
educate 1.164 1.105 1.225
income 1.031 1.008 1.054
age 1.028 1.019 1.038
male 1.293 1.010 1.654
www 1.740 1.257 2.408
Association of Predicted Probabilities and Observed Responses
Percent Concordant 68.4 Somers' D 0.371
Percent Discordant 31.3 Gamma 0.373
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 15
http://www.indiana.edu/~statmath 15
Percent Tied 0.4 Taua 0.181
Pairs 335544 c 0.686
Stata and SAS produce the same results. Log likelihood is 733.9716 =(1467.943/2); SAS
report 2*log likelihood 1467.943. Likelihood ratio is 128.681=1596.6241467.943.
McFadden‟s pseudo R
2
is .0806=1(1467.943/1596.624). AIC and BIC (or Schwarz
information criterion) are 1479.943 and 1510.352, respectively, in both outputs. Parameter
estimates and their standard errors are the same. However, Stata and SAS respectively conduct
z test and Wald test to examine the effects of individual independent variables but produce the
same pvalues, except for rounding errors. For example, Stata‟s z score 5.79 for education is
the square root of the Wald statistic 33.53.
If you want to get the output in the HTML format, use ODS statements before and after a SAS
procedure. ODS HTML redirects SAS output to the HTML format. The output is skipped.
ODS HTML;
PROC LOGISTIC . . .
. . .
ODS HTML CLOSE;
PROC LOGISTIC by default reports odds changes when independent variables increase by a
unit. The odds changes (ratios) under Odds Ratio Estimates are the same as what
Stata .listcoef produced in Section 2.2. For a unit ($1,000) increase in family income, the
odds of having social trust are expected to change by a factor of 1.031=exp(.0303), holding all
other covariates constant. The odds of having social trust are 1.293=exp(.2568) times larger for
men than for women; conversely, the odds of having no social trust are .7734=exp(.2568)
times smaller for men than for women.
The UNITS statement specifies a unit other than means of covariates. The SD in UNITS
indicates a standard deviation increase in covariates listed (educate, income, and age in this
example). UNITS adds factor changes in odds to the end of the LOGISTIC output. Read
numbers under Odds Ratios (other output is skipped below). For a standard deviation increase
in family income, the odds are expected to increase by a factor of 1.207=exp(.0303*6.1943).
You may find the same number under e^bStdX of .listcoef in Section 2.2.
PROC LOGISTIC DATA = masil.gss_cdvm;
MODEL trust(EVENT='1') = educate income age male www;
UNITS educate=SD income=SD age=SD;
RUN;
Odds Ratios
Effect Unit Estimate
educate 2.5697 1.476
income 6.1943 1.207
age 13.4071 1.456
Let us compute marginal effects manually. See Park (2004) for computation in detail. If you are
not familiar with SAS, you may skip this part. The first step is to get parameter estimates and
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 16
http://www.indiana.edu/~statmath 16
reference points. In PROC LOGISTIC, add OUTEST=masil.blm to store parameter estimates
into a SAS data set masil.blm. PROC MEANS with MEAN and STD computes means and
standard deviations of variables listed in the VAR statement and then store them into
masil.meanX. Notice that SAS, unlike Stata and R, is not caseinsensitive.
PROC LOGISTIC DESCENDING DATA = masil.gss_cdvm OUTEST=masil.blm;
MODEL trust = educate income age male www;
PROC MEANS MEAN STD DATA = masil.gss_cdvm;
VAR educate income age male www;
OUTPUT OUT=masil.meanX;
RUN;
(output is skipped)
Next, convert two SAS data sets into matrices, bHat and X in PROC IML. Then, compute
predicted probability and marginal effects. Pay attention to comments enclosed by /* and */.
PROC IML;
USE masil.blm; /* get a row vector of parameter estimates */
READ ALL VAR{Intercept educate income age male www} INTO bHat;
K=NCOL(bHat); /* get the number of regressors */
USE masil.meanX;
READ ALL VAR{educate income age male www} INTO X;
meanX = {1}  X[4,]; /* a row vector of means of independent variables */
sdX = {0}  X[5,]; /* a row vector of standard deviations of independent variables */
referX = meanX; /* set reference points */
referX[1,2]=16; referX[1,5]=0; referX[1,6]=1; /* education=16, male=0, www=1 */
xb = bHat * T(referX);
prob = exp(xb)/(1+exp(xb)); /* compute a predicted probability */
PRINT referX prob;
margin = prob * (1prob) * T(bHat); /* compute marginal effects */
marginSD = prob * (1prob) * T(bHat # sdX);
result = T(bHat)  T(exp(bHat))T(exp(bHat # sdX))  marginmarginSD  T(meanX)T(sdX);
result = result[2:K,];
PRINT result[ROWNAME={"educate", "income", "age", "male", "www"}
COLNAME={"b" "exp(b)" "exp(b*sdX)" "MargEffect" "MargEffect(SD)" "Mean of X" "SD of X"}];
QUIT; /* terminate PROC IML */
The following is the output of the PROC IML above. Compare marginal effects with
what .prchange reported in Section 2.2. Notice that .0640 and .1381 are not correct discrete
changes of gender and WWW use, respectively. Factor changes in the odds are also listed
under labels exp(b) and exp(b*sdX).
referX prob
1 16 24.648637 41.307496 0 1 0.4753497
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 17
http://www.indiana.edu/~statmath 17
result
b exp(b) exp(b*sdX) MargEffect MargEffect(SD) Mean of X SD of X
educate 0.1515807 1.1636722 1.4762701 0.0378031 0.097143 14.24276 2.5697123
income 0.0303475 1.0308127 1.2068103 0.0075684 0.046881 24.648637 6.1942699
age 0.0280151 1.0284112 1.4558671 0.0069867 0.0936722 41.307496 13.407127
male 0.2567949 1.29278 1.1363525 0.0640427 0.0318782 0.4505963 0.4977653
www 0.5537335 1.7397362 1.255393 0.1380969 0.056724 0.7853492 0.4107548
PROC PROBIT is primarily designed for the binary probit model but can estimate the same
binary logit model as well. The /DIST=LOGISTIC option indicates the link function
(probability distribution) to be used in maximum likelihood estimation.
PROC PROBIT DATA = masil.gss_cdvm;
MODEL trust = educate income age male www /DIST=LOGISTIC;
RUN;
The Probit Procedure
Model Information
Data Set MASIL.GSS_CDVM
Dependent Variable trust trust
Number of Observations 1174
Name of Distribution Logistic
Log Likelihood 733.97164
Number of Observations Read 1174
Number of Observations Used 1174
Class Level Information
Name Levels Values
trust 2 0 1
Response Profile
Ordered Total
Value trust Frequency
1 0 682
2 1 492
PROC PROBIT is modeling the probabilities of levels of trust having LOWER Ordered Values in the
response profile table.
Algorithm converged.
Type III Analysis of Effects
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 18
http://www.indiana.edu/~statmath 18
Wald
Effect DF ChiSquare Pr > ChiSq
educate 1 33.5304 <.0001
income 1 6.9204 0.0085
age 1 33.0827 <.0001
male 1 4.1650 0.0413
www 1 11.1433 0.0008
Analysis of Maximum Likelihood Parameter Estimates
Standard 95% Confidence Chi
Parameter DF Estimate Error Limits Square Pr > ChiSq
Intercept 1 4.9830 0.4784 4.0454 5.9206 108.51 <.0001
educate 1 0.1516 0.0262 0.2029 0.1003 33.53 <.0001
income 1 0.0303 0.0115 0.0530 0.0077 6.92 0.0085
age 1 0.0280 0.0049 0.0376 0.0185 33.08 <.0001
male 1 0.2568 0.1258 0.5034 0.0102 4.17 0.0413
www 1 0.5537 0.1659 0.8789 0.2286 11.14 0.0008
Unlike PROC LOGISTIC, PROC PROBIT does not have the DESCENDING (or DESC)
option. Therefore, you have to switch the signs of coefficients when comparing with PROC
LOGISTIC, Stata, and LIMDEP. PROC PROBIT does not have the UNITS statement to
compute factor changes in the odds.
2.4 Binary Logit Model in SAS: PROC QLIM and PROC GENMOD
PROC QLIM estimates not only logit and probit models, but also censored, truncated, and
sampleselected models. You may provide the probability distribution of a dependent variable
in the ENDOGENOUS statement or in the DISCRETE option of the MODEL statement.
PROC QLIM DATA=masil.gss_cdvm;
MODEL trust = educate income age male www;
ENDOGENOUS trust ~ DISCRETE(DIST=LOGIT);
PROC QLIM DATA=masil.gss_cdvm;
MODEL trust = educate income age male www /DISCRETE(DIST=LOGIT);
RUN;
The QLIM Procedure
Discrete Response Profile of trust
Index Value Frequency Percent
1 0 682 58.09
2 1 492 41.91
Model Fit Summary
Number of Endogenous Variables 1
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 19
http://www.indiana.edu/~statmath 19
Endogenous Variable trust
Number of Observations 1174
Log Likelihood 733.97164
Maximum Absolute Gradient 0.0000275
Number of Iterations 13
Optimization Method QuasiNewton
AIC 1480
Schwarz Criterion 1510
GoodnessofFit Measures
Measure Value Formula
Likelihood Ratio (R) 128.68 2 * (LogL  LogL0)
Upper Bound of R (U) 1596.6  2 * LogL0
AldrichNelson 0.0988 R / (R+N)
CraggUhler 1 0.1038 1  exp(R/N)
CraggUhler 2 0.1397 (1exp(R/N)) / (1exp(U/N))
Estrella 0.108 1  (1R/U)^(U/N)
Adjusted Estrella 0.0981 1  ((LogLK)/LogL0)^(2/N*LogL0)
McFadden's LRI 0.0806 R / U
VeallZimmermann 0.1714 (R * (U+N)) / (U * (R+N))
McKelveyZavoina 0.3489
N = # of observations, K = # of regressors
Algorithm converged.
Parameter Estimates
Standard Approx
Parameter DF Estimate Error t Value Pr > t
Intercept 1 4.983009 0.478382 10.42 <.0001
educate 1 0.151581 0.026178 5.79 <.0001
income 1 0.030349 0.011536 2.63 0.0085
age 1 0.028015 0.004871 5.75 <.0001
male 1 0.256796 0.125829 2.04 0.0413
www 1 0.553738 0.165881 3.34 0.0008
PROC QLIM produces various goodnessoffit measures and, unlike other procedures, reports t
scores, which are the same as z score in Stata (see Section 2.1). Therefore, PROC QLIM is
more comparable to Stata and LIMDEP than other alternative procedures in SAS.
PROC GENMOD provides flexible methods to estimate generalized linear and nonlinear
models. The DISTRIBUTION (DIST) and the LINK=LOGIT options respectively specify a
probability distribution and a link function.
PROC GENMOD DATA = masil.gss_cdvm DESC;
MODEL trust = educate income age male www /DIST=BINOMIAL LINK=LOGIT;
RUN;
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 20
http://www.indiana.edu/~statmath 20
The GENMOD Procedure
Model Information
Data Set MASIL.GSS_CDVM
Distribution Binomial
Link Function Logit
Dependent Variable trust trust
Number of Observations Read 1174
Number of Observations Used 1174
Number of Events 492
Number of Trials 1174
Response Profile
Ordered Total
Value trust Frequency
1 1 492
2 0 682
PROC GENMOD is modeling the probability that trust='1'.
Criteria For Assessing Goodness Of Fit
Criterion DF Value Value/DF
Log Likelihood 733.9716
Full Log Likelihood 733.9716
AIC (smaller is better) 1479.9433
AICC (smaller is better) 1480.0153
BIC (smaller is better) 1510.3523
Algorithm converged.
Analysis Of Maximum Likelihood Parameter Estimates
Standard Wald 95% Confidence Wald
Parameter DF Estimate Error Limits ChiSquare Pr > ChiSq
Intercept 1 4.9830 0.4784 5.9206 4.0454 108.51 <.0001
educate 1 0.1516 0.0262 0.1003 0.2029 33.53 <.0001
income 1 0.0303 0.0115 0.0077 0.0530 6.92 0.0085
age 1 0.0280 0.0049 0.0185 0.0376 33.08 <.0001
male 1 0.2568 0.1258 0.0102 0.5034 4.17 0.0413
www 1 0.5537 0.1659 0.2286 0.8789 11.14 0.0008
Scale 0 1.0000 0.0000 1.0000 1.0000
NOTE: The scale parameter was held fixed.
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 21
http://www.indiana.edu/~statmath 21
Instead of the LINK=LOGIT option, you may provide a corresponding link function manually
using the FWDLINK and INVLINK statements. The following is an example.
PROC GENMOD DATA = masil.gss_cdvm DESC;
FWDLINK link=LOG(_MEAN_/(1_MEAN_));
INVLINK invlink=1/(1+EXP(1*_XBETA_));
MODEL trust = educate income age male www /DIST=BINOMIAL;
RUN;
(output is skipped)
2.5 Binary Logit Model in R
In R, glm() fits binary logit and probit models. This function returns associated statistics and
functions such as coef() and vcov() in an object. Unlike Stata and SAS, R does not give you
all answers with a single function. Accordingly, you need to get specific answers using
statistics and functions that glm() returns.
Let us read a data set first using read.table(). The following example reads a CSV file and
saves into a data frame df. A delimiter is specified in sep=’’ and header=T reads variable
names from the first row. The attach() function adds the data frame to R search path so that
variables in the data frame are accessed by their names alone (without their data frame name).
> df<read.table('http://www.indiana.edu/~statmath/stat/all/cdvm/gss_cdvm.csv',
+ sep=',', header=T)
> attach(df)
In the glm() below, a dependent variable is followed by a tilde (~) and a list of independent
variables separated by a plus (+) sign. The family= option specifies a link function. The glm()
returns associated statistics and functions in an object blm. summary(blm) reports the summary
of the estimated binary logit model.
> blm<glm(trust~educate+income+age+male+www, data=df, family=binomial(link="logit"))
> summary(blm)
Call:
glm(formula = trust ~ educate + income + age + male + www, family = binomial(link = "logit"),
data = df)
Deviance Residuals:
Min 1Q Median 3Q Max
1.8263 0.9987 0.6752 1.1494 2.1516
Coefficients:
Estimate Std. Error z value Pr(>z)
(Intercept) 4.983009 0.478359 10.417 < 2e16 ***
educate 0.151581 0.026177 5.791 7.02e09 ***
income 0.030349 0.011536 2.631 0.008522 **
age 0.028015 0.004871 5.752 8.83e09 ***
male 0.256796 0.125829 2.041 0.041267 *
www 0.553738 0.165881 3.338 0.000843 ***

Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
(Dispersion parameter for binomial family taken to be 1)
Null deviance: 1596.6 on 1173 degrees of freedom
Residual deviance: 1467.9 on 1168 degrees of freedom
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 22
http://www.indiana.edu/~statmath 22
AIC: 1479.9
Number of Fisher Scoring iterations: 4
R reports the same parameter estimates, standard errors, and z scores that Stata produced. R
does not, however, display goodnessoffit measures except for AIC and, like SAS PROC
LOGISTIC, returns 2*log likelihood of null and full models (see Section 2.3) instead. For
instance, 1,467.9 of Residual deviance: is 2*log likelihood of the full model. df.null
(=1,173) and df.residual (=1,168) are degrees of freedom of null and full models,
respectively. Therefore, the likelihood ratio and its pvalue are computed as,
> blm$deviance/2
[1] 733.9716
> AIC(blm)
[1] 1479.943
> LRtest<blm$null.deviance  blm$deviance
> LRtest
[1] 128.6811
> dchisq(LRtest, blm$df.null  blm$df.residual)
[1] 2.214737e26
The likelihood ratio is 128.6811, which is large enough to reject the null hypothesis of poor fit
(no difference between null and full models). McFadden‟s pseudo R
2
is computed on the basis
of the two deviances (log likelihoods of null and full models): .0806=1(1467.9/1596.6). Notice
that a comment begins with the pound sign (#).
> 1bpm$deviance/bpm$null.deviance # McFadden's pseudo R square
[1] 0.08056336
Now, let us compute factor changes in the odds of having success. Create vectors of means and
standard deviations of covariates using c(), mean(), and sd(). Notice that 1 is for the intercept.
bHat and K are a vector of parameter estimates and a scalar for the length of bHat (number of
parameters).
> meanX<c(1, mean(educate), mean(income), mean(age), mean(male), mean(www))
> sdX<c(1, sd(educate), sd(income), sd(age), sd(male), sd(www))
> bHat<coef(blm) # vector of parameter estimates
> K<length(bHat) # the number of parameters
Next, compute factor changes of the odds. The following cbind() combines individual vectors
into a matrix. Exp(bHat*sdX) is factor changes when covariates increase by their standard
deviations. colnames(fcOdds) puts column names to the data frame fcOdds.
> fcOdds<cbind(bHat, exp(bHat), exp(bHat*sdX), meanX, sdX)
> fcOdds<fcOdds[2:K,]
> colnames(fcOdds)<c("b", "e^b", "e^(b*sd)", "Mean of X", "SD of X")
The following output is very similar to what .listcoef produced in Section 2.2.
> fcOdds
b exp(b) exp(b*sd) Mean of X SD of X
educate 0.15158121 1.163673 1.476272 14.2427598 2.5697123
income 0.03034856 1.030814 1.206818 24.6486371 6.1942699
age 0.02801520 1.028411 1.455869 41.3074957 13.4071272
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 23
http://www.indiana.edu/~statmath 23
male 0.25679598 1.292781 1.136353 0.4505963 0.4977653
www 0.55373840 1.739745 1.255396 0.7853492 0.4107548
Finally, compute marginal effects at the same reference points. %*% below obtains the element
by element product, a scalar of xb in this case. The scalar prob contains the predicted
probability of 47.53 percent that female WWW users with 16 years of education (educate=16,
male=0, and www=1) trust most people, holding other covariates at their means.
> referX<c(1, 16, mean(income), mean(age), 0, 1) # set reference points
> xb<bHat %*% referX # element by element product
> prob<exp(xb)/(1+exp(xb)) # compute a pridicted probability
> prob
[,1]
[1,] 0.4753492
Marginal effects are
c
x x    ) ( 1 )( ( A ÷ A in the binary logit model. When covariates increase
by their standard deviations from the reference points, the marginal effects are prob*(1
prob)*bHat*sdX. Compare the following result with what .prchange computed in Section 2.2
and the PROC IML output in Section 2.3. Notice that .0640 and .1381 below are not discrete
changes of gender and WWW use. See Section 3.4 for computing discrete changes.
> margEffect<cbind(bHat, prob*(1prob)*bHat, prob*(1prob)*bHat*sdX, meanX,sdX)
> margEffect<margEffect[2:K,]
> colnames(margEffect)<c("b", "MargEffect", "MargEffect(SD)", "Mean of X", "SD of X")
> margEffect
b MargEffect MargEffect(SD) Mean of X SD of X
educate 0.15158121 0.037803193 0.09714333 14.2427598 2.5697123
income 0.03034856 0.007568699 0.04688256 24.6486371 6.1942699
age 0.02801520 0.006986775 0.09367259 41.3074957 13.4071272
male 0.25679598 0.064042951 0.03187836 0.4505963 0.4977653
www 0.55373840 0.138098116 0.05672447 0.7853492 0.4107548
2.6 Binary Logit Model in LIMDEP (Logit$)
LIMDEP can read data in the ASCII text (CSV) and Excel format. The following script clears
the worksheet (RESET$), defines data size (ROWS;999999$), and then reads an Excel file
gss_cdvm.xls. Notice that each command ends with $ and subcommands are separated by a
semicolon.
RESET$
ROWS;999999$
READ;FILE="C:\Temp\Limdep\gss_cdvm.xls"$
The Logit$ command estimates various logit models in LIMDEP. A dependent variable is
specified in the Lhs= (lefthand side) subcommand and a list of independent variables in the
Rhs= (righthand side). You have to explicitly specify ONE for the intercept.
LOGIT;Lhs=TRUST;
Rhs=ONE,EDUCATE,INCOME,AGE,MALE,WWW$
Normal exit from iterations. Exit status=0.
++
 Binary Logit Model for Binary Choice 
 Maximum Likelihood Estimates 
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 24
http://www.indiana.edu/~statmath 24
 Model estimated: Sep 09, 2009 at 04:25:56PM.
 Dependent variable TRUST 
 Weighting variable None 
 Number of observations 1174 
 Iterations completed 5 
 Log likelihood function 733.9716 
 Number of parameters 6 
 Info. Criterion: AIC = 1.26060 
 Finite Sample: AIC = 1.26066 
 Info. Criterion: BIC = 1.28650 
 Info. Criterion:HQIC = 1.27037 
 Restricted log likelihood 798.3122 
 McFadden Pseudo Rsquared .0805957 
 Chi squared 128.6811 
 Degrees of freedom 5 
 Prob[ChiSqd > value] = .0000000 
 HosmerLemeshow chisquared = 3.64573 
 Pvalue= .88759 with deg.fr. = 8 
++
+++++++
Variable Coefficient  Standard Error b/St.Er.P[Z>z] Mean of X
+++++++
+Characteristics in numerator of Prob[Y = 1]
Constant 4.98300913 .47835906 10.417 .0000
EDUCATE  .15158121 .02617738 5.791 .0000 14.2427598
INCOME  .03034856 .01153642 2.631 .0085 24.6486371
AGE  .02801520 .00487072 5.752 .0000 41.3074957
MALE  .25679598 .12582872 2.041 .0413 .45059625
WWW  .55373840 .16588151 3.338 .0008 .78534923
++
 Information Statistics for Discrete Choice Model. 
 M=Model MC=Constants Only M0=No Model 
 Criterion F (log L) 733.97164 798.31217 813.75479 
 LR Statistic vs. MC 128.68107 .00000 .00000 
 Degrees of Freedom 5.00000 .00000 .00000 
 Prob. Value for LR .00000 .00000 .00000 
 Entropy for probs. 733.97164 798.31217 813.75479 
 Normalized Entropy .90196 .98102 1.00000 
 Entropy Ratio Stat. 159.56630 30.88523 .00000 
 Bayes Info Criterion 1.28048 1.39009 1.41640 
 BIC(no model)  BIC .13592 .02631 .00000 
 Pseudo Rsquared .08060 .00000 .00000 
 Pct. Correct Pred. 65.41738 .00000 50.00000 
 Means: y=0 y=1 y=2 y=3 y=4 y=5 y=6 y>=7 
 Outcome .5809 .4191 .0000 .0000 .0000 .0000 .0000 .0000 
 Pred.Pr .5809 .4191 .0000 .0000 .0000 .0000 .0000 .0000 
 Notes: Entropy computed as Sum(i)Sum(j)Pfit(i,j)*logPfit(i,j). 
 Normalized entropy is computed against M0. 
 Entropy ratio statistic is computed against M0. 
 BIC = 2*criterion  log(N)*degrees of freedom. 
 If the model has only constants or if it has no constants, 
 the statistics reported here are not useable. 
++
++
 Fit Measures for Binomial Choice Model 
 Logit model for variable TRUST 
++
 Proportions P0= .580920 P1= .419080 
 N = 1174 N0= 682 N1= 492 
 LogL= 733.972 LogL0= 798.312 
 Estrella = 1(L/L0)^(2L0/n) = .10799 
++
 Efron  McFadden  Ben./Lerman 
 .10474  .08060  .56407 
 Cramer  Veall/Zim.  Rsqrd_ML 
 .10469  .17142  .10382 
++
 Information Akaike I.C. Schwarz I.C. 
 Criteria 1.26060 1.28650 
++
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 25
http://www.indiana.edu/~statmath 25
++
Predictions for Binary Choice Model. Predicted value is 
1 when probability is greater than .500000, 0 otherwise.
Note, column or row total percentages may not sum to 
100% because of rounding. Percentages are of full sample.
++++
Actual Predicted Value  
Value  0 1  Total Actual 
+++++
 0  538 ( 45.8%) 144 ( 12.3%) 682 ( 58.1%)
 1  262 ( 22.3%) 230 ( 19.6%) 492 ( 41.9%)
+++++
Total  800 ( 68.1%) 374 ( 31.9%) 1174 (100.0%)
+++++
=======================================================================
Analysis of Binary Choice Model Predictions Based on Threshold = .5000

Prediction Success

Sensitivity = actual 1s correctly predicted 46.748%
Specificity = actual 0s correctly predicted 78.886%
Positive predictive value = predicted 1s that were actual 1s 61.497%
Negative predictive value = predicted 0s that were actual 0s 67.250%
Correct prediction = actual 1s and 0s correctly predicted 65.417%

Prediction Failure

False pos. for true neg. = actual 0s predicted as 1s 21.114%
False neg. for true pos. = actual 1s predicted as 0s 53.252%
False pos. for predicted pos. = predicted 1s actual 0s 38.503%
False neg. for predicted neg. = predicted 0s actual 1s 32.750%
False predictions = actual 1s and 0s incorrectly predicted 34.583%
=======================================================================
Stata, SAS, and LIMDEP produce the same result. The likelihood ratio is 128.6811=2*[(
798.3122)(733.9716)]. While SAS reports AIC*N=1,479.9433, LIMDEP returns an AIC of
1.2606 (=1,479.943/1,174). BIC (Schwarz IC) is 1510.351=1.2865*1174. In order to compute
marginal effects, add the Marginal Effects and Means subcommands to Logit$. The
following script computes marginal effects at the mean values of independent variables. Other
parts in the output are skipped.
LOGIT;Lhs=TRUST;
Rhs=ONE,EDUCATE,INCOME,AGE,MALE,WWW;
Marginal Effects; Means$
+++++++
Variable Coefficient  Standard Error b/St.Er.P[Z>z]Elasticity
+++++++
+Marginal effect for variable in probability
Constant 1.20446697 .11302276 10.657 .0000
EDUCATE  .03663942 .00632491 5.793 .0000 1.27598047
INCOME  .00733570 .00278319 2.636 .0084 .44211529
AGE  .00677169 .00117650 5.756 .0000 .68395424
+Marginal effect for dummy variable is P1  P0.
MALE  .06213506 .03043408 2.042 .0412 .06845822
+Marginal effect for dummy variable is P1  P0.
WWW  .12861867 .03653176 3.521 .0004 .24698361
++
 Marginal Effects for
+++
 Variable  All Obs. 
+++
 ONE  1.20447 
 EDUCATE  .03664 
 INCOME  .00734 
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 26
http://www.indiana.edu/~statmath 26
 AGE  .00677 
 MALE  .06214 
 WWW  .12862 
+++
In order to compare marginal effects computed in Stata and LIMDEP, let us run .prchange in
Stata without reference points specified. quietly before a command run the command but
suppresses the output. Stata and LIMDEP produce the same marginal effects (e.g., .0366 for
education) and discrete changes (e.g., .1286 for WWW use). Notice that marginal effects and
discrete changes vary depending on reference points used (compare with marginal effects in
Section 2.2).
. quietly logit trust educate income age male www
. prchange
logit: Changes in Probabilities for trust
min>max 0>1 +1/2 +sd/2 MargEfct
educate 0.5259 0.0111 0.0366 0.0939 0.0366
income 0.1805 0.0057 0.0073 0.0454 0.0073
age 0.4428 0.0041 0.0068 0.0905 0.0068
male 0.0621 0.0621 0.0620 0.0309 0.0621
www 0.1286 0.1286 0.1331 0.0549 0.1338
0 1
Pr(yx) 0.5910 0.4090
educate income age male www
x= 14.2428 24.6486 41.3075 .450596 .785349
sd_x= 2.56971 6.19427 13.4071 .497765 .410755
2.7 Binary Logit Model in SPSS
In SPSS, the Logistic Regression command fits the binary logit model. SPSS generates
messy tables, which are often overwhelming for beginners. The tables below are selected from
the entire output.
LOGISTIC REGRESSION VARIABLES trust
/METHOD=ENTER educate income age male www
/CRITERIA=PIN(0.05) POUT(0.10) ITERATE(20) CUT(0.5).
Model Summary
Step 2 Log likelihood
Cox & Snell R
Square
Nagelkerke R
Square
1 1467.943
a
.104 .140
a. Estimation terminated at iteration number 4 because
parameter estimates changed by less than .001.
Variables in the Equation
B S.E. Wald Df Sig. Exp(B)
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 27
http://www.indiana.edu/~statmath 27
Step 1
a
educate .152 .026 33.530 1 .000 1.164
income .030 .012 6.920 1 .009 1.031
age .028 .005 33.083 1 .000 1.028
male .257 .126 4.165 1 .041 1.293
www .554 .166 11.143 1 .001 1.740
Constant 4.983 .478 108.511 1 .000 .007
a. Variable(s) entered on step 1: educate, income, age, male, www.
SPSS returns the same parameter estimates and their standard errors. Like SAS PROC
LOGISTIC, SPSS reports 2*Loglikelihood (1,467.943=2*733.9716) and Wald statistics. P
values are listed under the label Sig. and factor changes in odds under Exp(B). SPSS does not
produce Pseudo R
2
, AIC, Schwarz, and BIC.
Table 2.1 summarizes parameter estimates and goodnessoffit measures of the binary logit
model produced in Stata, SAS, R. and LIMDEP, excluding the output of PROC PROBIT and
SPSS. Parameter estimates, their standard errors, and goodnessoffit measures are identical
except for some rounding errors. Stata, R, and LIMDEP report z scores for hypothesis test,
while PROC QLIM returns t scores and LOGISTIC, GENMOD, and PROBIT procedures
conduct chisquare tests. PROC LOGISTIC and Stata .logit with SPost are general
recommended.
Table 2.1. Parameter Estimates and Goodnessoffit of the Binary Logit Model
SAS Stata R LIMDEP
LOGISTIC QLIM GENMOD .logit glm() Logit$
Education
.1516
(.0262)
.1516
(.0262)
.1516
(.0262)
.1516
(.0262)
.1516
(.0262)
.1516
(.0262)
Family income
.0303
(.0115)
.0303
(.0115)
.0303
(.0115)
.0303
(.0115)
.0303
(.0115)
.0303
(.0115)
Age
.0280
(.0049)
.0280
(.0049)
.0280
(.0049)
.0280
(.0049)
.0280
(.0049)
.0280
(.0049)
Gender (male)
.2568
(.1258)
.2568
(.1258)
.2568
(.1258)
.2568
(.1258)
.2568
(.1258)
.2568
(.1258)
WWW use
.5537
(.1659)
.5537
(.1659)
.5537
(.1659)
.5537
(.1659)
.5537
(.1659)
.5537
(.1659)
Intercept
4.9830
(.4784)
4.9830
(.4784)
4.9830
(.4784)
4.9830
(.4784)
4.9830
(.4784)
4.9830
(.4784)
Log likelihood
733.9716 733.9716 733.9716 733.9716 733.9716 733.9716
Likelihood test
128.6811 128.68 128.68 128.6811 128.6811
Pseudo R
2
.0806 .0806 .0806 .0806 .0806
AIC
1479.943 1480. 1479.9433 1479.943 1479.943 1479.944
BIC (Schwarz)
1510.352 1510. 1510.3523 1510.352 1510.352
H
0
test
Chisquare t Chisquare z z z
*
PROC LOGISTIC and R report (2*Loglikelihood).
**
AIC*N and BIC*N in Stata and LIMDEP
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 28
http://www.indiana.edu/~statmath 28
3. Binary Probit Regression Model
The probit model is represented as ) ( )  1 Prob(  x x y u = = , where Φ indicates the cumulative
standard normal probability distribution function. Let us fit the binary probit model to see if
there is substantial difference between binary logit and probit models.
3.1 Binary Probit Model in Stata (.probit)
Stata .probit estimates the binary probit regression model. If you want to get robust standard
errors, add the robust option to .logit and .probit. The logit and probit models produce
almost similar goodnessoffit measures but their parameter estimates differ.
. probit trust educate income age male www
Iteration 0: log likelihood = 798.31217
Iteration 1: log likelihood = 734.10951
Iteration 2: log likelihood = 733.99746
Iteration 3: log likelihood = 733.99746
Probit regression Number of obs = 1174
LR chi2(5) = 128.63
Prob > chi2 = 0.0000
Log likelihood = 733.99746 Pseudo R2 = 0.0806

trust  Coef. Std. Err. z P>z [95% Conf. Interval]
+
educate  .0907207 .0154349 5.88 0.000 .0604689 .1209725
income  .0185906 .0068681 2.71 0.007 .0051293 .0320519
age  .0173105 .0029496 5.87 0.000 .0115293 .0230916
male  .1593935 .0768819 2.07 0.038 .0087077 .3100793
www  .3417645 .0992156 3.44 0.001 .1473055 .5362235
_cons  3.030053 .2786062 10.88 0.000 3.576111 2.483995

The standard normal probability distribution and standard logistic distribution respectively have
a unit variance and a variance of 3
2
t . Therefore, a parameter estimate in a binary logit model
is about 1.8138 ) 3 ( t = larger than its corresponding coefficient in its probit counterpart.
Long‟s suggestion is 1.7 (Long 1997: 48). For instance, the coefficient of education in the
binary logit model is .1516, which is similar to .1542 (1.7*.0907). See Cameron and Trivedi
(2009: 451452) for discussion on parameter estimates across models (OLS, binary logit, and
binary probit model).
. di _pi/sqrt(3)*.0907207
.16454915
. di 1.7*.0907207
.15422519
Goodnessoffit measures are very similar to those of the logit model. Log likelihoods are 
733.972 and 733.997 and likelihood ratios are 128.681 and 128.629 in binary logit and probit
models, respectively. They produce the same pseudo R
2
of .0806.
. fitstat
Measures of Fit for probit of trust
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 29
http://www.indiana.edu/~statmath 29
LogLik Intercept Only: 798.312 LogLik Full Model: 733.997
D(1168): 1467.995 LR(5): 128.629
Prob > LR: 0.000
McFadden's R2: 0.081 McFadden's Adj R2: 0.073
ML (CoxSnell) R2: 0.104 CraggUhler(Nagelkerke) R2: 0.140
McKelvey & Zavoina's R2: 0.166 Efron's R2: 0.105
Variance of y*: 1.199 Variance of error: 1.000
Count R2: 0.652 Adj Count R2: 0.171
AIC: 1.261 AIC*n: 1479.995
BIC: 6787.630 BIC': 93.289
BIC used by Stata: 1510.404 AIC used by Stata: 1479.995
In order to get standardized estimates, run SPost‟s .listcoef command. A coefficient is the
impact of an independent variable for a unit increase in that variable, while the corresponding
number under bStdX is the impact of the covariate for a standard deviation increase in that
variable. For example, the xstandardized coefficient of education is .2331 (=.0907*2.5697).
Notice that factor changes in odds by definition are not available in a probit model.
. listcoef, help
probit (N=1174): Unstandardized and Standardized Estimates
Observed SD: .49361879
Latent SD: 1.0952088

trust  b z P>z bStdX bStdY bStdXY SDofX
+
educate  0.09072 5.878 0.000 0.2331 0.0828 0.2129 2.5697
income  0.01859 2.707 0.007 0.1152 0.0170 0.1051 6.1943
age  0.01731 5.869 0.000 0.2321 0.0158 0.2119 13.4071
male  0.15939 2.073 0.038 0.0793 0.1455 0.0724 0.4978
www  0.34176 3.445 0.001 0.1404 0.3121 0.1282 0.4108

b = raw coefficient
z = zscore for test of b=0
P>z = pvalue for ztest
bStdX = xstandardized coefficient
bStdY = ystandardized coefficient
bStdXY = fully standardized coefficient
SDofX = standard deviation of X
The discrete change of a binary variable remains unchanged in the binary probit model, but the
marginal effect of a continuous independent variable in the binary probit model is defined as,
c
c
x
x
x y P
   ) (
)  1 (
=
c
= c
where  denotes the standard normal probability density function.
You may compute marginal effects and discrete changes using either .mfx or
SPost‟s .prchange. Marginal effects and discrete changes in the logit and probit models,
despite different parameter estimates, are very similar (.0378 versus .0361 for education
and .1329 versus .1320 for WWW use). Also two models return the similar predicted
probability at the same reference points (.4753 versus .4747).
. mfx, at(mean educate=16 male=0 www=1)
Marginal effects after probit
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 30
http://www.indiana.edu/~statmath 30
y = Pr(trust) (predict)
= .47469509

variable  dy/dx Std. Err. z P>z [ 95% C.I. ] X
+
educate  .0361195 .00681 5.30 0.000 .022774 .049465 16
income  .0074017 .00264 2.81 0.005 .002234 .012569 24.6486
age  .006892 .00118 5.83 0.000 .004574 .00921 41.3075
male* .0635132 .03058 2.08 0.038 .003573 .123453 0
www* .1320435 .0374 3.53 0.000 .058748 .205339 1

(*) dy/dx is for discrete change of dummy variable from 0 to 1
. prchange, x(educate=16 male=0 www=1) rest(mean)
probit: Changes in Probabilities for trust
min>max 0>1 +1/2 +sd/2 MargEfct
educate 0.5265 0.0123 0.0361 0.0926 0.0361
income 0.1916 0.0065 0.0074 0.0458 0.0074
age 0.4409 0.0051 0.0069 0.0922 0.0069
male 0.0635 0.0635 0.0634 0.0316 0.0635
www 0.1320 0.1320 0.1354 0.0558 0.1361
0 1
Pr(yx) 0.5253 0.4747
educate income age male www
x= 16 24.6486 41.3075 0 1
sd_x= 2.56971 6.19427 13.4071 .497765 .410755
Similarly, .prtab and .prvalue report same predicted probabilities at the same reference
points. Compare the following result with the output presented in Section 2.2.
. prtab male www, x(educate=16 male=0 www=1) rest(mean)
probit: Predicted probabilities of positive outcome for trust

 WWW Use
Gender  Nonusers Users
+
Female  0.3427 0.4747
Male  0.4029 0.5382

educate income age male www
x= 16 24.648637 41.307496 0 1
. prvalue, x(educate=16 male=0 www=1) rest(mean)
probit: Predictions for trust
Confidence intervals by delta method
95% Conf. Interval
Pr(y=1x): 0.4747 [ 0.4281, 0.5213]
Pr(y=0x): 0.5253 [ 0.4787, 0.5719]
educate income age male www
x= 16 24.648637 41.307496 0 1
Finally, let us draw a plot of predicted probabilities using .prgen. We are using the same
reference points and same range of education (0 to 20) to get Figure 3.1. See Appendix for the
Stata script used.
. quietly probit trust educate income age male www
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 31
http://www.indiana.edu/~statmath 31
. prgen educate, from(0) to(20) ncases(20) x(male=1 www=1) rest(mean) gen(Probit_age11)
probit: Predicted values as educate varies from 0 to 20.
educate income age male www
x= 14.24276 24.648637 41.307496 1 1
. prgen educate, from(0) to(20) ncases(20) x(male=1 www=0) rest(mean) gen(Probit_age10)
probit: Predicted values as educate varies from 0 to 20.
educate income age male www
x= 14.24276 24.648637 41.307496 1 0
. prgen educate, from(0) to(20) ncases(20) x(male=0 www=1) rest(mean) gen(Probit_age01)
probit: Predicted values as educate varies from 0 to 20.
educate income age male www
x= 14.24276 24.648637 41.307496 0 1
. prgen educate, from(0) to(20) ncases(20) x(male=0 www=0) rest(mean) gen(Probit_age00)
probit: Predicted values as educate varies from 0 to 20.
educate income age male www
x= 14.24276 24.648637 41.307496 0 0
Compare Figure 2.1 and 3.1 to find they are almost identical. This finding is not surprising at
all because predicted probabilities, marginal effects, and discrete changes are very similar in
binary logit and probit models, although two models produce different parameter estimates and
standard errors.
Figure 3.1 Predicted Probabilities of Trusting Most People (Binary Probit Model)
0
.
2
.
4
.
6
.
8
1
1 3 5 7 9 11 13 15 17 19 1 3 5 7 9 11 13 15 17 19
WWW Nonusers WWW Users
Men Women
P
r
e
d
i
c
t
e
d
P
r
o
b
a
b
i
l
i
t
i
e
s
Education (Years)
Graphs by bygroup
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 32
http://www.indiana.edu/~statmath 32
3.2 Binary Probit Model in SAS: PROC PROBIT and PROC LOGISTIC
PROBIT and LOGISTIC procedures estimate the binary probit model. Keep in mind that the
coefficients of PROC PROBIT have opposite signs. Stata and SAS produce the same result.
PROC PROBIT DATA = masil.gss_cdvm;
MODEL trust = educate income age male www;
RUN;
The Probit Procedure
Model Information
Data Set MASIL.GSS_CDVM
Dependent Variable trust trust
Number of Observations 1174
Name of Distribution Normal
Log Likelihood 733.9974633
Number of Observations Read 1174
Number of Observations Used 1174
Class Level Information
Name Levels Values
trust 2 0 1
Response Profile
Ordered Total
Value trust Frequency
1 0 682
2 1 492
PROC PROBIT is modeling the probabilities of levels of trust having LOWER Ordered Values in the
response profile table.
Algorithm converged.
Type III Analysis of Effects
Wald
Effect DF ChiSquare Pr > ChiSq
educate 1 34.5467 <.0001
income 1 7.3266 0.0068
age 1 34.4417 <.0001
male 1 4.2983 0.0382
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 33
http://www.indiana.edu/~statmath 33
www 1 11.8657 0.0006
Analysis of Maximum Likelihood Parameter Estimates
Standard 95% Confidence Chi
Parameter DF Estimate Error Limits Square Pr > ChiSq
Intercept 1 3.0300 0.2786 2.4840 3.5761 118.28 <.0001
educate 1 0.0907 0.0154 0.1210 0.0605 34.55 <.0001
income 1 0.0186 0.0069 0.0321 0.0051 7.33 0.0068
age 1 0.0173 0.0029 0.0231 0.0115 34.44 <.0001
male 1 0.1594 0.0769 0.3101 0.0087 4.30 0.0382
www 1 0.3418 0.0992 0.5362 0.1473 11.87 0.0006
PROC LOGISTIC requires a normal probability distribution as a link function
(/LINK=PROBIT or /LINK=NORMIT) to fit a binary probit model. McFadden‟s pseudo R
2
is .0806=1(.1467.995/1596.624). OUTEST stores parameter estimates into a SAS data set
masil.bpm, which will be used when computing marginal effects later.
PROC LOGISTIC DATA = masil.gss_cdvm DESC OUTEST=masil.bpm;
MODEL trust = educate income age male www /LINK=PROBIT;
RUN;
The LOGISTIC Procedure
Model Information
Data Set MASIL.GSS_CDVM
Response Variable trust trust
Number of Response Levels 2
Model binary probit
Optimization Technique Fisher's scoring
Number of Observations Read 1174
Number of Observations Used 1174
Response Profile
Ordered Total
Value trust Frequency
1 1 492
2 0 682
Probability modeled is trust=1.
Model Convergence Status
Convergence criterion (GCONV=1E8) satisfied.
Model Fit Statistics
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 34
http://www.indiana.edu/~statmath 34
Intercept
Intercept and
Criterion Only Covariates
AIC 1598.624 1479.995
SC 1603.693 1510.404
2 Log L 1596.624 1467.995
Testing Global Null Hypothesis: BETA=0
Test ChiSquare DF Pr > ChiSq
Likelihood Ratio 128.6294 5 <.0001
Score 121.5344 5 <.0001
Wald 118.2980 5 <.0001
Analysis of Maximum Likelihood Estimates
Standard Wald
Parameter DF Estimate Error ChiSquare Pr > ChiSq
Intercept 1 3.0298 0.2796 117.4048 <.0001
educate 1 0.0907 0.0158 32.9144 <.0001
income 1 0.0186 0.00682 7.4273 0.0064
age 1 0.0173 0.00295 34.3163 <.0001
male 1 0.1594 0.0769 4.2979 0.0382
www 1 0.3418 0.0995 11.7914 0.0006
Association of Predicted Probabilities and Observed Responses
Percent Concordant 68.4 Somers' D 0.371
Percent Discordant 31.3 Gamma 0.372
Percent Tied 0.4 Taua 0.181
Pairs 335544 c 0.686
Stata, PROC LOGISTIC, and PROC PROBIT share the same parameter estimates, but PROC
LOGISTIC reports slightly different standard errors (e.g., .0158 versus .0154 for education).
The following script fits the same model using /LINK=NORMIT and stores the SAS output in
an HTML file c:\temp\sas\logit.html using ODS.
ODS HTML FILE='c:\temp\sas\probit.html';
PROC LOGISTIC DATA = masil.gss_cdvm DESC;
MODEL trust(EVENT='1') = educate income age male www /LINK=NORMIT;
RUN;
ODS HTML CLOSE;
Let us compute marginal effects using SAS/IML. We stored parameter estimates in masil.bpm.
The following SAS script highlights the only parts different from the PROC IML in Section 2.3.
PROBNORM()=CDF(„NORMAL‟) and PDF(„NORMAL‟) are respectively CDF and PDF of
the standard normal distribution.
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 35
http://www.indiana.edu/~statmath 35
PROC IML;
USE masil.bpm; /* get a row vector of parameter estimates */
READ ALL VAR{Intercept educate income age male www} INTO bHat;
K=NCOL(bHat); /* get the number of regressors */
...
prob = PROBNORM(xb); /* compute a predicted probability */
...
margin = PDF('NORMAL', xb, 0, 1) * T(bHat); /* compute marginal effects */
marginSD = PDF('NORMAL', xb, 0, 1) * T(bHat # sdX);
...
QUIT; /* terminate PROC IML */
The predicted probability that female Internet users will trust people is 47.47 percent, holding
other covariates at their means. Calculated marginal effects are the same as what .prchange
returned in Section 3.1.
referX prob
1 16 24.648637 41.307496 0 1 0.4746975
result
b MargEffect MargEffect(SD) Mean of X SD of X
educate 0.0907156 0.0361175 0.0928116 14.24276 2.5697123
income 0.0185849 0.0073994 0.0458338 24.648637 6.1942699
age 0.0173094 0.0068915 0.0923958 41.307496 13.407127
male 0.1593898 0.0634594 0.0315879 0.4505963 0.4977653
www 0.3417757 0.1360745 0.0558932 0.7853492 0.4107548
3.3 Binary Probit Model in SAS: PROC QLIM and PROC GENMOD
PROC QLIM provides various goodnessoffit statistics. The DIST=NORMAL option below
indicates the normal probability distribution to be used in estimation. Compared to PROC
LOGISTIC, PROC QLIM reports same parameter estimates and goodnessoffit statistics but
slightly different standard errors.
PROC QLIM DATA=masil.gss_cdvm;
MODEL trust = educate income age male www /DISCRETE (DIST=NORMAL);
RUN;
The QLIM Procedure
Discrete Response Profile of trust
Index Value Frequency Percent
1 0 682 58.09
2 1 492 41.91
Model Fit Summary
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 36
http://www.indiana.edu/~statmath 36
Number of Endogenous Variables 1
Endogenous Variable trust
Number of Observations 1174
Log Likelihood 733.99746
Maximum Absolute Gradient 0.00200
Number of Iterations 11
Optimization Method QuasiNewton
AIC 1480
Schwarz Criterion 1510
GoodnessofFit Measures
Measure Value Formula
Likelihood Ratio (R) 128.63 2 * (LogL  LogL0)
Upper Bound of R (U) 1596.6  2 * LogL0
AldrichNelson 0.0987 R / (R+N)
CraggUhler 1 0.1038 1  exp(R/N)
CraggUhler 2 0.1396 (1exp(R/N)) / (1exp(U/N))
Estrella 0.1079 1  (1R/U)^(U/N)
Adjusted Estrella 0.098 1  ((LogLK)/LogL0)^(2/N*LogL0)
McFadden's LRI 0.0806 R / U
VeallZimmermann 0.1714 (R * (U+N)) / (U * (R+N))
McKelveyZavoina 0.1662
N = # of observations, K = # of regressors
Algorithm converged.
Parameter Estimates
Standard Approx
Parameter DF Estimate Error t Value Pr > t
Intercept 1 3.030053 0.278616 10.88 <.0001
educate 1 0.090721 0.015435 5.88 <.0001
income 1 0.018591 0.006868 2.71 0.0068
age 1 0.017310 0.002950 5.87 <.0001
male 1 0.159393 0.076882 2.07 0.0382
www 1 0.341764 0.099215 3.44 0.0006
PROC GENMOD estimates the binary probit model using the /DIST=BINOMIAL and
/LINK=PROBIT options in the MODEL statement. Again, DESC uses a larger value as a
positive event (success). PROC QLIM and PROC GENMOD return the same parameter
estimates, standard errors, and goodnessoffit measures.
PROC GENMOD DATA = masil.gss_cdvm DESC;
MODEL trust = educate income age male www /DIST=BINOMIAL LINK=PROBIT;
RUN;
The GENMOD Procedure
Model Information
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 37
http://www.indiana.edu/~statmath 37
Data Set MASIL.GSS_CDVM
Distribution Binomial
Link Function Probit
Dependent Variable trust trust
Number of Observations Read 1174
Number of Observations Used 1174
Number of Events 492
Number of Trials 1174
Response Profile
Ordered Total
Value trust Frequency
1 1 492
2 0 682
PROC GENMOD is modeling the probability that trust='1'.
Criteria For Assessing Goodness Of Fit
Criterion DF Value Value/DF
Log Likelihood 733.9975
Full Log Likelihood 733.9975
AIC (smaller is better) 1479.9949
AICC (smaller is better) 1480.0669
BIC (smaller is better) 1510.4040
Algorithm converged.
Analysis Of Maximum Likelihood Parameter Estimates
Standard Wald 95% Confidence Wald
Parameter DF Estimate Error Limits ChiSquare Pr > ChiSq
Intercept 1 3.0301 0.2786 3.5761 2.4840 118.28 <.0001
educate 1 0.0907 0.0154 0.0605 0.1210 34.55 <.0001
income 1 0.0186 0.0069 0.0051 0.0321 7.33 0.0068
age 1 0.0173 0.0029 0.0115 0.0231 34.44 <.0001
male 1 0.1594 0.0769 0.0087 0.3101 4.30 0.0382
www 1 0.3418 0.0992 0.1473 0.5362 11.87 0.0006
Scale 0 1.0000 0.0000 1.0000 1.0000
NOTE: The scale parameter was held fixed.
3.4 Binary Probit Model in R
The glm() function fits the binary probit model with family=binomial(link="probit").
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 38
http://www.indiana.edu/~statmath 38
> bpm<glm(trust~educate+income+age+male+www, data=df, family=binomial(link="probit"))
> summary(bpm)
Call:
glm(formula = trust ~ educate + income + age + male + www, family = binomial(link = "probit"),
data = df)
Deviance Residuals:
Min 1Q Median 3Q Max
1.8299 1.0033 0.6756 1.1496 2.1831
Coefficients:
Estimate Std. Error z value Pr(>z)
(Intercept) 3.030037 0.279632 10.836 < 2e16 ***
educate 0.090719 0.015812 5.737 9.63e09 ***
income 0.018591 0.006820 2.726 0.006410 **
age 0.017311 0.002955 5.858 4.68e09 ***
male 0.159394 0.076884 2.073 0.038157 *
www 0.341768 0.099532 3.434 0.000595 ***

Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
(Dispersion parameter for binomial family taken to be 1)
Null deviance: 1596.6 on 1173 degrees of freedom
Residual deviance: 1468.0 on 1168 degrees of freedom
AIC: 1480
Number of Fisher Scoring iterations: 4
Parameter estimates are the same across Stata, PROC LOGISTIC, and PROC QLIM. R and
PROC LOGISTIC have the same standard errors, which are slightly different from those of
Stata, PROC QLIM, PROC GENMOD, and PROC PROBIT. Let us conduct the likelihood
ratio test using deviances of the null and full models. The pseudo R
2
.0806 is also computed
from the two deviances.
> bpm$deviance/2
[1] 733.9975
> AIC(bpm)
[1] 1479.995
> LRtest<bpm$null.devianceblm$deviance
> LRtest
[1] 128.6811
> dchisq(LRtest, bpm$df.null  bpm$df.residual)
[1] 2.214737e26
> 1bpm$deviance/bpm$null.deviance # McFadden's pseudo R square
[1] 0.08056336
In order to get the predicted probability, use the same script except for the cumulative standard
normal distribution function (CDF) pnorm(). The predicted probability is 47.47 percent at the
same reference points.
> bHat<coef(bpm) # vector of parameter estimates
> K<length(bHat) # the number of regressors
> referX<c(1, 16, mean(income), mean(age), 0, 1)
> xb<bHat %*% referX # element by element product
> prob<pnorm(xb)
> prob
[,1]
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 39
http://www.indiana.edu/~statmath 39
[1,] 0.4746947
When calculating marginal effects in the binary probit model, use the standard normal
probability density function (PDF) dnorm(). The following for() loop sets two reference
points of 0 and 1 and computes the difference of the two predicted probabilities.
> margin<cbind(bHat, dnorm(xb)*bHat, dnorm(xb)*bHat*sdX, meanX, sdX)
> for (i in c(5, 6)) { # locations of binary variables
+ referX0<matrix(referX)
+ referX1<matrix(referX)
+ referX0[i,1]<0
+ referX1[i,1]<1
+
+ xb0<bHat %*% referX0
+ xb1<bHat %*% referX1
+
+ dChange<pnorm(xb1)pnorm(xb0)
+ margEffect[i,2]<dChange # replace the marginal effect with the discrete change
+ }
>
> margEffect<margEffect[2:K,]
> colnames(margEffect)<c("b", "MargEffect", "MargEffect(SD)", "Mean of X", "SD of X")
> margEffect
b MargEffect MargEffect(SD) Mean of X SD of X
educate 0.09071919 0.036118888 0.09281515 14.2427598 2.5697123
income 0.01859065 0.007401671 0.04584795 24.6486371 6.1942699
age 0.01731051 0.006891997 0.09240188 41.3074957 13.4071272
male 0.15939356 0.063513240 0.03158862 0.4505963 0.4977653
www 0.34176814 0.132044777 0.05589197 0.7853492 0.4107548
Compare above marginal effects with the results of .prchange in Section 3.1 and PROC IML
in Section 3.2.
3.5 Binary Probit Model in LIMDEP (Probit$)
In LIMDEP, the Probit$ command estimates various probit models. Do not forget to include
the ONE for the intercept. LIMDEP produces the same result as the other software packages.
PROBIT;Lhs=TRUST;
Rhs=ONE,EDUCATE,INCOME,AGE,MALE,WWW;
Marginal Effects; Means$
Normal exit from iterations. Exit status=0.
 Binomial Probit Model 
 Maximum Likelihood Estimates 
 Model estimated: Sep 09, 2009 at 11:41:52PM.
 Dependent variable TRUST 
 Weighting variable None 
 Number of observations 1174 
 Iterations completed 5 
 Log likelihood function 733.9975 
 Number of parameters 6 
 Info. Criterion: AIC = 1.26064 
 Finite Sample: AIC = 1.26070 
 Info. Criterion: BIC = 1.28655 
 Info. Criterion:HQIC = 1.27041 
 Restricted log likelihood 798.3122 
 McFadden Pseudo Rsquared .0805634 
 Chi squared 128.6294 
 Degrees of freedom 5 
 Prob[ChiSqd > value] = .0000000 
 HosmerLemeshow chisquared = 4.81557 
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 40
http://www.indiana.edu/~statmath 40
 Pvalue= .77709 with deg.fr. = 8 
+iable Coefficient  Standard Error b/St.Er.P[Z>z] Mean of X
++ndex function for probability
Constant 3.03005313 .27860620 10.876 .0000
EDUCATE  .09072070 .01543488 5.878 .0000 14.2427598
INCOME  .01859061 .00686814 2.707 .0068 24.6486371
AGE  .01731045 .00294962 5.869 .0000 41.3074957
MALE  .15939348 .07688194 2.073 .0382 .45059625
WWW  .34176450 .09921561 3.445 .0006 .78534923
+ves of E[y] = F[*] with 
 respect to the vector of characteristics. 
 They are computed at the means of the Xs. 
 Observations used for means are All Obs. 
+  Standard Error b/St.Er.P[Z>z]Elasticity
+++numerator of Prob[Y = 4]
Constant .58627711 .01519985 38.571 .0000
EDUCATE  .03529223 .00600827 5.874 .0000 1.22238383
INCOME  .00723213 .00266928 2.709 .0067 .43350460
AGE  .00673413 .00114709 5.871 .0000 .67646354
+Marginal effect for dummy variable is P1  P0.
MALE  .06205251 – .02991770 2.074 .0381 .06799567
+Marginal effect for dummy variable is P1  P0.
WWW  .12889554 – .03589934 3.590 .0003 .24616994
+odel 
 Probit model for variable TRUST 
+0 
 N = 1174 N0= 682 N1= 492 
 LogL= 733.997 LogL0= 798.312 
 Estrella = 1(L/L0)^(2L0/n) = .10795 
+ 
 .10456  .08056  .56389 
 Cramer  Veall/Zim.  Rsqrd_ML 
 .10440  .17135  .10378 
++
 Criteria 1.26064 1.28655 
++
+ed value is 
1 when probability is greater than .500000, 0 otherwise.
Note, column or row total percentages may not sum to 
100% because of rounding. Percentages are of full sample.
+++ 
Value  0 1  Total Actual 
++++58.1%)
 1  263 ( 22.4%) 229 ( 19.5%) 492 ( 41.9%)
++++)
+++++
=======5000

Sensitivity = actual 1s correctly predicted 46.545%
Specificity = actual 0s correctly predicted 78.739%
Positive predictive value = predicted 1s that were actual 1s 61.230%
Negative predictive value = predicted 0s that were actual 0s 67.125%
Correct prediction = actual 1s and 0s correctly predicted 65.247%

Prediction Failure

False pos. for true neg. = actual 0s predicted as 1s 21.261%
False neg. for true pos. = actual 1s predicted as 0s 53.455%
False pos. for predicted pos. = predicted 1s actual 0s 38.770%
False neg. for predicted neg. = predicted 0s actual 1s 32.875%
False predictions = actual 1s and 0s incorrectly predicted 34.753%
=======================================================================
Compare marginal effects above with the following that .prchange computed at the means of
all independent variables.
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 41
http://www.indiana.edu/~statmath 41
. prchange
probit: Changes in Probabilities for trust
min>max 0>1 +1/2 +sd/2 MargEfct
educate 0.5262 0.0123 0.0353 0.0905 0.0353
income 0.1816 0.0059 0.0072 0.0448 0.0072
age 0.4435 0.0045 0.0067 0.0901 0.0067
male 0.0621 0.0621 0.0619 0.0309 0.0620
www 0.1289 0.1289 0.1323 0.0546 0.1330
0 1
Pr(yx) 0.5888 0.4112
educate income age male www
x= 14.2428 24.6486 41.3075 .450596 .785349
sd_x= 2.56971 6.19427 13.4071 .497765 .410755
3.6 Binary Probit Model in SPSS
SPSS has the Probit command to fit the binary probit model. This command requires an
additional variable (e.g., n in the following example) with constant 1. If you want to use GUI
menu (pointandclick), include n in Total Observed: and independent variables in
Covariate(s) of a dialog box Probit Analysis.
COMPUTE n=1.
PROBIT trust OF n WITH educate income age male www
/LOG NONE
/MODEL PROBIT
/PRINT FREQ
/CRITERIA ITERATE(20) STEPLIMIT(.1).
The following tables are selected from messy SPSS output. Stata, SAS, LIMDEP, SPSS and R
produce the same parameter estimates and goodnessoffit measures.
Parameter Estimates
Parameter Estimate Std. Error Z Sig.
95% Confidence Interval
Lower Bound Upper Bound
PROBITa educate
.091 .015 5.878 .000 .060 .121
income
.019 .007 2.707 .007 .005 .032
age
.017 .003 5.869 .000 .012 .023
male
.159 .077 2.073 .038 .009 .310
www
.342 .099 3.445 .001 .147 .536
Intercept
3.030 .279 10.876 .000 3.309 2.751
a. PROBIT model: PROBIT(p) = Intercept + BX
ChiSquare Tests
ChiSquare Dfa Sig.
PROBIT
Pearson GoodnessofFit Test 1174.457 1168 .442
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 42
http://www.indiana.edu/~statmath 42
ChiSquare Tests
ChiSquare Dfa Sig.
PROBIT
Pearson GoodnessofFit Test 1174.457 1168 .442
a. Statistics based on individual cases differ from statistics based on aggregated cases.
The Probit command also fits the binary logit model. The following command reports z scores
instead of Wald statistics and does not report factor changes of the odds. The output is skipped.
PROBIT trust OF n WITH educate income age male www
/LOG NONE
/MODEL LOGIT
/PRINT FREQ
/CRITERIA ITERATE(20) STEPLIMIT(.1).
Table 3.1 summarizes parameter estimates and goodnessoffit statistics produced in SAS, Stata,
R, and LIMDEP. Parameter estimates are the same across software packages, but standard
errors in PROC LOGISTIC and R are slightly different from those computed in other software
packages (i.e., PROC QLIM, PROC GENMOD, PROC PROBIT, Stata, LIMDEP, and SPSS). I
would recommend PROC LOGISTIC and Stata for the binary probit model.
Table 3.1 Parameter Estimates and Goodnessoffit of the Binary Probit Model
SAS Stata R LIMDEP
LOGISTIC QLIM GENMOD
.probit glm() Probit$
Education
.0907
(.0158)
.0907
(.0154)
.0907
(.0154)
.0907
(.0154)
.0907
(.0158)
.0907
(.0154)
Family income
.0186
(.0068)
.0186
(.0069)
.0186
(.0069)
.0186
(.0069)
.0186
(.0068)
.0186
(.0069)
Age
.0173
(.0030)
.0173
(.0030)
.0173
(.0029)
.0173
(.0029)
.0173
(.0030)
.0173
(.0029)
Gender (male)
.1594
(.0769)
.1594
(.0769)
.1594
(.0769)
.1594
(.0769)
.1594
(.0769)
.1594
(.0769)
WWW use
.3418
(.0995)
.3418
(.0992)
.3418
(.0992)
.3418
(.0992)
.3418
(.0995)
.3418
(.0992)
Intercept
3.0298
(.2796)
3.0301
(.2786)
3.0301
(.2786)
3.0301
(.2786)
3.0300
(.2796)
3.0301
(.2786)
Log likelihood
733.9975 733.9975 733.9975 733.9975 733.9975 733.9975
Likelihood test
128.629 128.63 128.63 128.6811 128.6294
Pseudo R
2
.0806 .0806 .0806 .0806 .0806
AIC
1479.995 1480. 1479.9949 1479.995 1749.995 1749.9914
BIC (Schwarz)
1510.404 1510. 1510.4040 1510.404 1510.4097
H
0
test
Chisquare t Chisquare z z z
*
PROC LOGISTIC and R reports (2*Loglikelihood).
**
AIC*N and BIC*N in Stata and LIMDEP
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 43
http://www.indiana.edu/~statmath 43
4. Bivariate Probit Regression Models
Bivariate probit regression models have two equations for two binary dependent variables. This
chapter explains how to fit the bivariate probit model and the recursive bivariate regression
model with an endogenous variable. The recursive bivariate probit model is formulated as
(Maddala 1983:122123; Greene 2003:715716),
1 2 1
'
1
*
1
c ¸  + + = y x y , 1
1
= y if 0
*
1
> y , 0 otherwise,
2 2
'
2
*
2
c  + = x y , 1
2
= y if 0
*
2
> y , 0 otherwise,
where
1
y is a binary dependent variable of interest in equation 1,
2
y is a binary dependent
variable of equation 2 that is included in the first equation as an endogenous variable, and
1
x
and
2
x are the regressor vectors of two regression equations. A typical bivariate probit model
does not include ¸
2
y in the first equation. Disturbances of two equations are assumed to be
independent, identically distributed and follow the bivariate standard normal probability
distribution with their correlation coefficient ρ:
( )
(
¸
(
¸
÷ +
÷
÷
÷
=
2 1
2
2
2
1 2
2
2 1 2
2
) 1 ( 2
1
exp
1 2
1
) , , ( c µc c c
µ
µ t
µ c c 
Here we consider a model, where social trust and Internet use are jointly determined. Stata,
SAS, and LIMDEP can fit bivariate probit models.
4.1 Bivariate Probit Model in Stata (.biprobit)
In Stata, .biprobit estimates bivariate probit models. If both equations have the same
specification, you may list two dependent variables followed by covariates. If not, you need to
specify equations individually, in each of which a binary variable and independent variables
separated by an equal sign. The following two commands fit exactly the same model.
. quietly biprobit trust www educate income age male // or
. biprobit (trust = educate income age male) (www = educate income age male)
Fitting comparison equation 1:
Iteration 0: log likelihood = 798.31217
Iteration 1: log likelihood = 740.16976
Iteration 2: log likelihood = 740.02303
Iteration 3: log likelihood = 740.02303
Fitting comparison equation 2:
Iteration 0: log likelihood = 610.5431
Iteration 1: log likelihood = 564.86129
Iteration 2: log likelihood = 564.36806
Iteration 3: log likelihood = 564.36805
Comparison: log likelihood = 1304.3911
Fitting full model:
Iteration 0: log likelihood = 1304.3911
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 44
http://www.indiana.edu/~statmath 44
Iteration 1: log likelihood = 1297.8302
Iteration 2: log likelihood = 1297.8205
Iteration 3: log likelihood = 1297.8205
Bivariate probit regression Number of obs = 1174
Wald chi2(8) = 185.87
Log likelihood = 1297.8205 Prob > chi2 = 0.0000

 Coef. Std. Err. z P>z [95% Conf. Interval]
+
trust 
educate  .1028598 .0150584 6.83 0.000 .073346 .1323737
income  .0202876 .0068117 2.98 0.003 .0069369 .0336384
age  .0161267 .0029175 5.53 0.000 .0104085 .021845
male  .165699 .0766088 2.16 0.031 .0155486 .3158495
_cons  2.926968 .2750501 10.64 0.000 3.466056 2.38788
+
www 
educate  .1478252 .0180092 8.21 0.000 .1125278 .1831225
income  .0188763 .0065797 2.87 0.004 .0059803 .0317723
age  .0103983 .0031951 3.25 0.001 .0166606 .0041361
male  .0776235 .0864866 0.90 0.369 .091887 .247134
_cons  1.317766 .289774 4.55 0.000 1.885713 .7498197
+
/athrho  .2035694 .0565478 3.60 0.000 .0927378 .314401
+
rho  .2008033 .0542676 .0924729 .3044355

Likelihoodratio test of rho=0: chi2(1) = 13.1412 Prob > chi2 = 0.0003
This model fits the data well (χ
2
=185.87, p<.0000). .fitstat and other SPost commands do
not work with this model. Instead, .estat returns AIC 2,618 and BIC 2,673, respectively.
. estat ic

Model  Obs ll(null) ll(model) df AIC BIC
+
.  1174 . 1297.82 11 2617.641 2673.391

Note: N=Obs used in calculating BIC; see [R] BIC note
We can compute marginal effects and conditional marginal effects using predict(pmarg1)
and predict(pcond1), respectively. If the correlation of disturbances of two equations is zero,
they should be identical. Since the likelihood ratio test above rejects the null hypothesis of zero
correlation (χ
2
=13.1412, p<.0003), marginal effects and conditional marginal effects here are
different even at the same reference points.
. mfx, predict(pcond1) at(mean educate=16 male=0)
Marginal effects after biprobit
y = Pr(trust=1www=1) (predict, pcond1)
= .4744549

variable  dy/dx Std. Err. z P>z [ 95% C.I. ] X
+
educate  .0371474 .00613 6.06 0.000 .025124 .049171 16
income  .0076112 .00272 2.80 0.005 .002278 .012944 24.6486
age  .006753 .00117 5.79 0.000 .004467 .009039 41.3075
male* .0643811 .03051 2.11 0.035 .004592 .124171 0

(*) dy/dx is for discrete change of dummy variable from 0 to 1
. mfx, predict(pmarg1) at(mean educate=16 male=0)
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 45
http://www.indiana.edu/~statmath 45
Marginal effects after biprobit
y = Pr(trust=1) (predict, pmarg1)
= .45422459

variable  dy/dx Std. Err. z P>z [ 95% C.I. ] X
+
educate  .0407647 .00609 6.69 0.000 .028822 .052708 16
income  .0080402 .0027 2.98 0.003 .002752 .013329 24.6486
age  .0063912 .00116 5.53 0.000 .004127 .008655 41.3075
male* .0659948 .03045 2.17 0.030 .006316 .125674 0

(*) dy/dx is for discrete change of dummy variable from 0 to 1
4.2 Recursive Bivariate Probit Model in Stata (.biprobit)
What if Internet use influences social trust directly? In order words, WWW use is the
dependent variable in the second equation and is also included in the first equation as an
endogenous variable. This is a recursive bivariate probit model, which is explained in Maddala
(1983) and Greene (1996, 2003). Since the two equations have different specifications, they
should be provided separately in parentheses after the .biprobit command. Check the model
name Seemingly unrelated bivariate probit in the following output.
. biprobit (trust = educate income age male www) (www = educate income age male)
Fitting comparison equation 1:
Iteration 0: log likelihood = 798.31217
Iteration 1: log likelihood = 734.10951
Iteration 2: log likelihood = 733.99746
Iteration 3: log likelihood = 733.99746
Fitting comparison equation 2:
Iteration 0: log likelihood = 610.5431
Iteration 1: log likelihood = 564.86129
Iteration 2: log likelihood = 564.36806
Iteration 3: log likelihood = 564.36805
Comparison: log likelihood = 1298.3655
Fitting full model:
Iteration 0: log likelihood = 1298.3655
Iteration 1: log likelihood = 1298.2982
Iteration 2: log likelihood = 1297.3043
Iteration 3: log likelihood = 1297.3008
Iteration 4: log likelihood = 1297.3007
Seemingly unrelated bivariate probit Number of obs = 1174
Wald chi2(9) = 194.40
Log likelihood = 1297.3007 Prob > chi2 = 0.0000

 Coef. Std. Err. z P>z [95% Conf. Interval]
+
trust 
educate  .1228844 .0197756 6.21 0.000 .084125 .1616437
income  .0225769 .0066392 3.40 0.001 .0095643 .0355894
age  .0126723 .004382 2.89 0.004 .0040837 .021261
male  .1682476 .0743747 2.26 0.024 .0224759 .3140193
www  .7178395 .5729155 1.25 0.210 1.840733 .4050543
_cons  2.531195 .4938755 5.13 0.000 3.499174 1.563217
+
www 
educate  .1510947 .0182167 8.29 0.000 .1153906 .1867988
income  .0188034 .0065301 2.88 0.004 .0060047 .0316021
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 46
http://www.indiana.edu/~statmath 46
age  .0101814 .0031937 3.19 0.001 .0164409 .0039219
male  .0663948 .086608 0.77 0.443 .1033538 .2361435
_cons  1.365747 .2928927 4.66 0.000 1.939807 .7916883
+
/athrho  .6719729 .4621132 1.45 0.146 .2337523 1.577698
+
rho  .5862762 .3032758 .2295859 .9182416

Likelihoodratio test of rho=0: chi2(1) = 2.12962 Prob > chi2 = 0.1445
This model also fits the data well (χ
2
=194.40, p<.0000) and most individual parameters are
statistically significant at the .05 level. AIC and BIC are 2,619 and 2,679, respectively.
. estat ic

Model  Obs ll(null) ll(model) df AIC BIC
+
.  1174 . 1297.301 12 2618.601 2679.419

Note: N=Obs used in calculating BIC; see [R] BIC note
However, the LR test (χ
2
=2.1296) suggests that the two disturbances are not significantly
correlated. The estimated correlation .5863 is far away from zero but is not statistically
discernable (p<.1445). Therefore, social trust and WWW use may not be jointly determined;
each equation may need to be estimated separately or may be analyzed in the bivariate probit
model. The binary probit model for WWW use is as follows.
. probit www educate income age male
Iteration 0: log likelihood = 610.5431
Iteration 1: log likelihood = 564.86129
Iteration 2: log likelihood = 564.36806
Iteration 3: log likelihood = 564.36805
Probit regression Number of obs = 1174
LR chi2(4) = 92.35
Prob > chi2 = 0.0000
Log likelihood = 564.36805 Pseudo R2 = 0.0756

www  Coef. Std. Err. z P>z [95% Conf. Interval]
+
educate  .1454532 .0178746 8.14 0.000 .1104197 .1804868
income  .0189197 .0065902 2.87 0.004 .0060031 .0318362
age  .0103946 .0032009 3.25 0.001 .0166682 .004121
male  .08164 .0865442 0.94 0.346 .0879834 .2512635
_cons  1.288283 .2885836 4.46 0.000 1.853896 .7226694

In the recursive bivariate probit model, conditional marginal effects make more sense than the
typical marginal effects. The predicted probability that citizens trust most people is 47.21
percent at the reference points, given they use the Internet: pr(trust=1www=1)=.4721.
. quietly biprobit (trust = educate income age male www) (www = educate income age male)
. mfx, predict(pcond1) at(mean educate=16 male=0 www=1)
Marginal effects after biprobit
y = Pr(trust=1www=1) (predict, pcond1)
= .47208977

variable  dy/dx Std. Err. z P>z [ 95% C.I. ] X
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 47
http://www.indiana.edu/~statmath 47
+
educate  .0394964 .00635 6.22 0.000 .027053 .05194 16
income  .0079921 .00266 3.01 0.003 .002786 .013198 24.6486
age  .0061891 .00132 4.67 0.000 .003592 .008786 41.3075
male* .065738 .02987 2.20 0.028 .007193 .124284 0
www* .2858939 .21383 1.34 0.181 .704984 .133196 1

(*) dy/dx is for discrete change of dummy variable from 0 to 1
Stata .mfx does not report direct and indirect effects but returns the sum of the two effects.
When combining direct and indirect effects, for an additional increase in education from the 16
years, the conditional predicted probability of trusting people will increase by 3.95 percent,
holding all other variables constant at their reference points.
The following Stata script illustrates how to compute manually direct and indirect effects of
covariates. See the Stata script in Appendix for entire steps of computation. Beginners may skip
this part and take a look at the result table only. Find the predicted probability of .4721 in the
middle of the output. See Greene (1996, 2007) for related formulas.
. quietly biprobit (trust = educate income age male www) (www = educate income age male)
. global rho=e(rho) // correlation coefficient of disturbances
. global n1 = 6 // the number of parameters in equation 1
. global n2 = 5 // the number of parameters in equation 2
. tabstat educate income age male www, stat(mean) col(variable) save
stats  educate income age male www
+
mean  14.24276 24.64864 41.3075 .4505963 .7853492

. matrix ref1 = r(StatTotal),I(1) // reference points for equation 1
. matrix ref1[1,1]=16 // education (college graduation)
. matrix ref1[1,4]=0 // female
. matrix ref1[1,5]=1 // WWW use
. matrix ref2 = ref1[1,1..$n2] // reference points for equation 2
. matrix ref2[1,$n2]=1
. // get parameter estimates
. matrix b0=e(b)
. matrix b1=b0[1,1..$n1] // parameter estimates for equation 1
. matrix b2=b0[1,$n1+1..$n1+$n2] // parameter estimates for equation 2
. matrix xb1=b1*ref1' // compute xb1 of equation 1
. matrix xb2=b2*ref2' // compute xb2 of equation 2
. global xb1=xb1[1,1] // put xb1 into a global macro for computation
. global xb2=xb2[1,1] // put xb1 into a global macro for computation
. // compute the predicted probability at the reference points
. di binormal($xb1, $xb2, $rho)/normal($xb2)
.47208977
. // compute direct effects
. global g1=normalden($xb1)*normal(($xb2($rho)*$xb1)/sqrt(1($rho)^2))
. matrix directE=$g1/normal($xb2)*b1
. matrix directE=directE[1,1..$n2]
. // compute indirect effects
. global g2=normalden($xb2)*normal(($xb1($rho)*$xb2)/sqrt(1($rho)^2))
. matrix indirectE=($g2/normal($xb2) ///
(binormal($xb1,$xb2,$rho)*normalden($xb2))/(normal($xb2)^2))*b2
. matrix indirectE[1,$n2]=0
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 48
http://www.indiana.edu/~statmath 48
. // compute overall effects
. matrix Overall=directE+indirectE
…
(the procedure for computing discrete change is skipped)
…
. matrix list Marginal
Marginal[4,5]
Education Income Age Male WWW
Reference 16 24.648637 41.307496 0 1
Direct .05190699 .0095366 .00535285 .07106867 .3032191
Indirect .0124106 .00154447 .00083628 .00545353 0
Overall .03949639 .00799213 .00618913 .06573803 .28589388
Read the last line for overall marginal effects and discrete changes and compare with the output
of the .mfx above. The overall impact of education on social trust is the sum of direct (.0519)
and indirect effects (.0124). Family income also has negative indirect effect .0015, but age
has both positive direct and indirect effects (.0054 and .0008, respectively).
The following two commands compute marginal effects of equation 1 and 2 (pmarg1 and
pmarg2). The predicted probability of trusting people is .4196 at the reference points, while the
predicted probability of using WWW in the second equation is .8632.
. mfx, predict(pmarg1) at(mean educate=16 male=0 www=1)
Marginal effects after biprobit
y = Pr(trust=1) (predict, pmarg1)
= .41959352

variable  dy/dx Std. Err. z P>z [ 95% C.I. ] X
+
educate  .0480246 .00759 6.33 0.000 .033147 .062903 16
income  .0088233 .00258 3.42 0.001 .00377 .013876 24.6486
age  .0049525 .00175 2.82 0.005 .001515 .00839 41.3075
male* .0665716 .02941 2.26 0.024 .008926 .124217 0
www* .2770971 .20246 1.37 0.171 .673911 .119717 1

(*) dy/dx is for discrete change of dummy variable from 0 to 1
. mfx, predict(pmarg2) at(mean educate=16 male=0 www=1)
Marginal effects after biprobit
y = Pr(www=1) (predict, pmarg2)
= .86317073

variable  dy/dx Std. Err. z P>z [ 95% C.I. ] X
+
educate  .0331092 .00319 10.37 0.000 .026852 .039366 16
income  .0041204 .00145 2.84 0.005 .001277 .006963 24.6486
age  .002231 .00071 3.13 0.002 .003628 .000834 41.3075
male* .0140228 .01825 0.77 0.442 .021756 .049801 0
www* 0 0 . . 0 0 1

(*) dy/dx is for discrete change of dummy variable from 0 to 1
4.3 Bivariate Probit Models in SAS: PROC QLIM
In SAS, PROC QLIM is able to estimate both bivariate probit models. Like Stata, SAS allows
specifying two equations in a line if they share the same specification. ENDOGENOUS
describes characteristics of dependent variables; in this example, they are discrete variables
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 49
http://www.indiana.edu/~statmath 49
whose disturbances are normally distributed. Stata and SAS report the same correlation of
disturbances (ρ=.2008), parameter estimates, and standard errors.
PROC QLIM DATA=masil.gss_cdvm;
MODEL trust www = educate income age male;
ENDOGENOUS trust www ~ DISCRETE(DIST=NORMAL);
RUN;
The QLIM Procedure
Discrete Response Profile of trust
Index Value Frequency Percent
1 0 682 58.09
2 1 492 41.91
Discrete Response Profile of www
Index Value Frequency Percent
1 0 252 21.47
2 1 922 78.53
Model Fit Summary
Number of Endogenous Variables 2
Endogenous Variable trust www
Number of Observations 1174
Log Likelihood 1298
Maximum Absolute Gradient 0.0004068
Number of Iterations 55
Optimization Method QuasiNewton
AIC 2618
Schwarz Criterion 2673
Algorithm converged.
Parameter Estimates
Standard Approx
Parameter DF Estimate Error t Value Pr > t
trust.Intercept 1 2.926969 0.275060 10.64 <.0001
trust.educate 1 0.102860 0.015059 6.83 <.0001
trust.income 1 0.020288 0.006812 2.98 0.0029
trust.age 1 0.016127 0.002918 5.53 <.0001
trust.male 1 0.165699 0.076609 2.16 0.0305
www.Intercept 1 1.317767 0.289789 4.55 <.0001
www.educate 1 0.147825 0.018010 8.21 <.0001
www.income 1 0.018876 0.006580 2.87 0.0041
www.age 1 0.010398 0.003195 3.25 0.0011
www.male 1 0.077624 0.086487 0.90 0.3694
_Rho 1 0.200803 0.054268 3.70 0.0002
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 50
http://www.indiana.edu/~statmath 50
Now, let us fit the recursive bivariate probit model. Notice that the two equations are provided
in two separate MODEL statements. The ENDOGENOUS statement is needed to indicate the
probability distribution of disturbances in the two equations.
PROC QLIM DATA=masil.gss_cdvm;
MODEL trust = educate income age male www;
MODEL www = educate income age male;
ENDOGENOUS trust www ~ DISCRETE(DIST=NORMAL);
RUN;
The QLIM Procedure
Discrete Response Profile of trust
Index Value Frequency Percent
1 0 682 58.09
2 1 492 41.91
Discrete Response Profile of www
Index Value Frequency Percent
1 0 252 21.47
2 1 922 78.53
Model Fit Summary
Number of Endogenous Variables 2
Endogenous Variable trust www
Number of Observations 1174
Log Likelihood 1297
Maximum Absolute Gradient 0.00327
Number of Iterations 52
Optimization Method QuasiNewton
AIC 2619
Schwarz Criterion 2679
Algorithm converged.
Parameter Estimates
Standard Approx
Parameter DF Estimate Error t Value Pr > t
trust.Intercept 1 2.532266 0.494644 5.12 <.0001
trust.educate 1 0.122857 0.019796 6.21 <.0001
trust.income 1 0.022575 0.006640 3.40 0.0007
trust.age 1 0.012681 0.004389 2.89 0.0039
trust.male 1 0.168258 0.074380 2.26 0.0237
trust.www 1 0.716498 0.574098 1.25 0.2120
www.Intercept 1 1.365669 0.292877 4.66 <.0001
www.educate 1 0.151091 0.018218 8.29 <.0001
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 51
http://www.indiana.edu/~statmath 51
www.income 1 0.018804 0.006530 2.88 0.0040
www.age 1 0.010182 0.003193 3.19 0.0014
www.male 1 0.066424 0.086610 0.77 0.4431
_Rho 1 0.585570 0.303930 1.93 0.0540
Stata and PROC QLIM produce the same result except for the correlation of disturbances and
parameter estimates of WWW use, which are slightly different (e.g., .5863 versus .5856 in ρ
and .7178 versus .7165 for WWW use).
4.4 Bivariate Probit Models in LIMDEP (Bivariateprobit$)
Bivariateprobit$ estimates bivariate probit models in LIMDEP. The Lhs= subcommand lists
the two binary dependent variables, whereas Rh1= and Rh2= respectively specify the
independent variables for the two equations.
BIVARIATEPROBIT;Lhs=TRUST,WWW;
Rh1=ONE,EDUCATE,INCOME,AGE,MALE;
Rh2=ONE,EDUCATE,INCOME,AGE,MALE$
Normal exit from iterations. Exit status=0.
++
 FIML Estimates of Bivariate Probit Model 
 Maximum Likelihood Estimates 
 Model estimated: Sep 15, 2009 at 03:16:00PM.
 Dependent variable TRUWWW 
 Weighting variable None 
 Number of observations 1174 
 Iterations completed 17 
 Log likelihood function 1297.820 
 Number of parameters 11 
 Info. Criterion: AIC = 2.22968 
 Finite Sample: AIC = 2.22987 
 Info. Criterion: BIC = 2.27716 
 Info. Criterion:HQIC = 2.24758 
++
+++++++
Variable Coefficient  Standard Error b/St.Er.P[Z>z] Mean of X
+++++++
+Index equation for TRUST
Constant 2.92696771 .27487860 10.648 .0000
EDUCATE  .10285982 .01414096 7.274 .0000 14.2427598
INCOME  .02028760 .00707111 2.869 .0041 24.6486371
AGE  .01612671 .00293070 5.503 .0000 41.3074957
MALE  .16569900 .07696720 2.153 .0313 .45059625
+Index equation for WWW
Constant 1.31776621 .29250724 4.505 .0000
EDUCATE  .14782515 .01763456 8.383 .0000 14.2427598
INCOME  .01887630 .00643465 2.934 .0034 24.6486371
AGE  .01039833 .00328982 3.161 .0016 41.3074957
MALE  .07762348 .08744329 .888 .3747 .45059625
+Disturbance correlation
RHO(1,2) .20080326 .05431808 3.697 .0002
++
 Joint Frequency Table for Bivariate Probit Model 
 Predicted cell is the one with highest probability 
++
 WWW 
+++
 TRUST  0 1 Total 
++++
 0  180  502  682 
 Fitted  ( 36)  ( 730)  ( 766) 
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 52
http://www.indiana.edu/~statmath 52
++++
 1  72  420  492 
 Fitted  ( 0)  ( 408)  ( 408) 
++++
 Total  252  922  1174 
 Fitted  ( 36)  ( 1138)  ( 1174) 
++++
++
 Bivariate Probit Predictions for TRUST and WWW 
 Predicted cell (i,j) is cell with largest probability 
 Neither TRUST nor WWW predicted correctly 
 82 of 1174 observations 
 Only TRUST correctly predicted 
 TRUST = 0: 143 of 682 observations 
 TRUST = 1: 25 of 492 observations 
 Only WWW correctly predicted 
 WWW = 0: 4 of 252 observations 
 WWW = 1: 25 of 922 observations 
 Both TRUST and WWW correctly predicted 
 TRUST = 0 WWW = 0: 15 of 180 
 TRUST = 1 WWW = 0: 0 of 72 
 TRUST = 0 WWW = 1: 359 of 502 
 TRUST = 1 WWW = 1: 218 of 420 
++
The above output suggests that Stata, SAS, and LIMDEP produce same correlation coefficient
of errors, parameter estimates, and standard errors with some rounding errors. AIC and BIC are
2617=2.2297*1,174 and 2,673=2.2772*1,174, respectively.
Now, fit the recursive bivariate probit model by adding WWW use to the first equation as an
endogenous variable. Marginal Effect (or Margin) in the following command computes
marginal effects and discrete changes at the means of the independent variables.
BIVARIATEPROBIT;Lhs=TRUST,WWW;
Rh1=ONE,EDUCATE,INCOME,AGE,MALE,WWW;
Rh2=ONE,EDUCATE,INCOME,AGE,MALE;
Marginal Effect$
Normal exit from iterations. Exit status=0.
++
 FIML Estimates of Bivariate Probit Model 
 Maximum Likelihood Estimates 
 Model estimated: Sep 15, 2009 at 00:21:09PM.
 Dependent variable TRUWWW 
 Weighting variable None 
 Number of observations 1174 
 Iterations completed 24 
 Log likelihood function 1297.301 
 Number of parameters 12 
 Info. Criterion: AIC = 2.23050 
 Finite Sample: AIC = 2.23072 
 Info. Criterion: BIC = 2.28230 
 Info. Criterion:HQIC = 2.25003 
++
+++++++
Variable Coefficient  Standard Error b/St.Er.P[Z>z] Mean of X
+++++++
+Index equation for TRUST
Constant 2.53127459 .62810574 4.030 .0001
EDUCATE  .12288180 .02325478 5.284 .0000 14.2427598
INCOME  .02257666 .00691464 3.265 .0011 24.6486371
AGE  .01267296 .00549849 2.305 .0212 41.3074957
MALE  .16824823 .07532931 2.234 .0255 .45059625
WWW  .71772906 .79960562 .898 .3694 .78534923
+Index equation for WWW
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 53
http://www.indiana.edu/~statmath 53
Constant 1.36574036 .29541029 4.623 .0000
EDUCATE  .15109435 .01790608 8.438 .0000 14.2427598
INCOME  .01880339 .00644213 2.919 .0035 24.6486371
AGE  .01018150 .00326806 3.115 .0018 41.3074957
MALE  .06639735 .08750730 .759 .4480 .45059625
+Disturbance correlation
RHO(1,2) .58621974 .42476829 1.380 .1676
++
 Marginal Effects for Ey1y2=1 
++++++
 Variable  Efct x1  Efct x2  Efct h1  Efct h2 
++++++
 ONE  .00000  .00000  .00000  .00000 
 EDUCATE  .05291  .01572  .00000  .00000 
 INCOME  .00972  .00196  .00000  .00000 
 AGE  .00546  .00106  .00000  .00000 
 MALE  .07245  .00691  .00000  .00000 
 WWW  .30905  .00000  .00000  .00000 
++++++
++
 Partial derivatives of E[y1y2=1] with 
 respect to the vector of characteristics. 
 They are computed at the means of the Xs. 
 Effect shown is total of 4 parts above. 
 Estimate of E[y1y2=1] = .499957 
 Observations used for means are All Obs. 
 Total effects reported = direct+indirect. 
++
+++++++
Variable Coefficient  Standard Error b/St.Er.P[Z>z] Mean of X
+++++++
Constant .000000 ......(Fixed Parameter).......
EDUCATE  .03718914 .00584175 6.366 .0000 14.2427598
INCOME  .00776473 .00279401 2.779 .0055 24.6486371
AGE  .00651654 .00123352 5.283 .0000 41.3074957
MALE  .06553806 .03045594 2.152 .0314 .45059625
WWW  .30905460 .38237776 .808 .4190 .78534923
++
 Partial derivatives of E[y1y2=1] with 
 respect to the vector of characteristics. 
 They are computed at the means of the Xs. 
 Effect shown is total of 4 parts above. 
 Estimate of E[y1y2=1] = .499957 
 Observations used for means are All Obs. 
 These are the direct marginal effects. 
++
+++++++
Variable Coefficient  Standard Error b/St.Er.P[Z>z] Mean of X
+++++++
Constant .000000 ......(Fixed Parameter).......
EDUCATE  .05291298 .01587199 3.334 .0009 14.2427598
INCOME  .00972153 .00344429 2.823 .0048 24.6486371
AGE  .00545698 .00182639 2.988 .0028 41.3074957
MALE  .07244780 .03248863 2.230 .0258 .45059625
WWW  .30905460 .38237776 .808 .4190 .78534923
++
 Partial derivatives of E[y1y2=1] with 
 respect to the vector of characteristics. 
 They are computed at the means of the Xs. 
 Effect shown is total of 4 parts above. 
 Estimate of E[y1y2=1] = .499957 
 Observations used for means are All Obs. 
 These are the indirect marginal effects. 
++
+++++++
Variable Coefficient  Standard Error b/St.Er.P[Z>z] Mean of X
+++++++
Constant .000000 ......(Fixed Parameter).......
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 54
http://www.indiana.edu/~statmath 54
EDUCATE  .01572384 .01418159 1.109 .2675 14.2427598
INCOME  .00195680 .00186681 1.048 .2945 24.6486371
AGE  .00105955 .00097193 1.090 .2756 41.3074957
MALE  .00690973 .01021978 .676 .4990 .45059625
WWW  .000000 ......(Fixed Parameter).......
++
 Analysis of dummy variables in the model. The effects are 
 computed using E[y1y2=1,d=1]  E[y1y2=1,d=0] where d is 
 the variable. Variances use the delta method. The effect 
 accounts for all appearances of the variable in the model.
++
Variable Effect Standard error t ratio 
++
MALE .065467 .030353 2.157
WWW .296117 .325843 .909
++
 Joint Frequency Table for Bivariate Probit Model 
 Predicted cell is the one with highest probability 
++
 WWW 
+++
 TRUST  0 1 Total 
++++
 0  180  502  682 
 Fitted  ( 54)  ( 560)  ( 614) 
++++
 1  72  420  492 
 Fitted  ( 0)  ( 560)  ( 560) 
++++
 Total  252  922  1174 
 Fitted  ( 54)  ( 1120)  ( 1174) 
++++
++
 Bivariate Probit Predictions for TRUST and WWW 
 Predicted cell (i,j) is cell with largest probability 
 Neither TRUST nor WWW predicted correctly 
 166 of 1174 observations 
 Only TRUST correctly predicted 
 TRUST = 0: 25 of 682 observations 
 TRUST = 1: 67 of 492 observations 
 Only WWW correctly predicted 
 WWW = 0: 3 of 252 observations 
 WWW = 1: 67 of 922 observations 
 Both TRUST and WWW correctly predicted 
 TRUST = 0 WWW = 0: 21 of 180 
 TRUST = 1 WWW = 0: 0 of 72 
 TRUST = 0 WWW = 1: 356 of 502 
 TRUST = 1 WWW = 1: 213 of 420 
++
SAS, Stata, and LIMDEP produce almost the same parameter estimates and log likelihood, but
LIMDEP produces slightly different standard errors. The correlation of disturbances is .5862 in
Stata and LIMDEP but is slightly different in SAS (ρ=.5856). LIMDEP and Stata report the
same conditional predicted probability of 49.9968 percent and conditional marginal effects at
the means of covariates. Let us compare the LIMDEP output (direct and indirect effects
combined) with the following output computed in Stata:
. mfx, predict(pcond1) at(mean male=.450596 www=.785349)
Marginal effects after biprobit
y = Pr(trust=1www=1) (predict, pcond1)
= .49996773

variable  dy/dx Std. Err. z P>z [ 95% C.I. ] X
+
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 55
http://www.indiana.edu/~statmath 55
educate  .0371892 .00611 6.09 0.000 .025213 .049165 14.2428
income  .0077648 .00269 2.89 0.004 .002498 .013031 24.6486
age  .0065165 .0012 5.43 0.000 .004164 .008869 41.3075
male* .0654669 .03028 2.16 0.031 .006124 .12481 .450596
www* .2961619 .23328 1.27 0.204 .753376 .161052 .785349

(*) dy/dx is for discrete change of dummy variable from 0 to 1
LIMDEP reports direct and indirect effects separately in addition to direct and indirect effect
combined. The first table under the label Marginal Effects for Ey1y2=1 right after the
parameter estimates summarizes direct and indirect effects. For example, education has a direct
effect of .05291 and an indirect effect .01572, so its overall impact on social trust is the sum of
the two effects, which is .0372=.0529.0157. Stata reports this combined marginal effect. Find
the equivalent overall effect in the table under Total effects reported =
direct+indirect of the above LIMDEP output. LIMDEP produces other two tables for direct
(see under These are the direct marginal effects) and indirect effects (see under These
are the indirect marginal effects).
Discrete changes .0655 of male and .3091 of WWW use under direct+indirect in the
LIMDEP output are different from those of Stata since LIMDEP computes at the means of all
covariates including binary variables; in fact, they are not, by definition, discrete changes
(differences in predicted probabilities between trust=0 and trust=1). LIMDEP reports
discrete changes (E[y1y2=1,d=1]E[y1y2=1,d=0]) separately at the bottom of the output.
Find 6.5467 percent for gender and 29.6117 for WWW use.
The following table reports direct, indirect, and overall effects computed manually at the means
of covariates in Stata. See the attached Stata script for computation. Notice that the last two
numbers (.0655 and .2962) on row Overall are discrete changes of gender and WWW use,
respectively.
Education Income Age Male WWW
Reference 14.24276 24.648637 41.307496 .45059625 .78534923
Direct .05291496 .00972179 .0054568 .07244873 .30910722
Indirect .01572574 .00195703 .00105967 .00691029 0
Overall .03718922 .00776475 .00651647 .06546686 .29616189
Analysis of direct and indirect effects is very useful especially when two effects have opposite
signs. For instance, education influences positively social trust in the first equation but has a
negative impact (indirect effect) on WWW use in the second equation. Therefore, its overall
effect is determined by magnitudes of two effects; the large direct impact dominates in this
case, .0372=.0529.0157. If this specification is correct, a single equation for social trust may
mistakenly report an overestimated impact of education. See Greene (1996, 2003) for
discussion of computing and interpreting marginal effects in the recursive bivariate probit
model.
Table 4.1 compares the results of bivariate probit models across Stata, SAS, and LIMDEP. In
the bivariate probit model, all three software packages report the same goodnessoffit
measures, parameter estimates, and the correlation coefficient of disturbance (ρ=.2008), but
LIMDEP produces slightly different standard errors. In the recursive bivariate probit model,
similarly, Stata, SAS, and LIMDEP produce the same parameter estimates and goodnessoffit
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 56
http://www.indiana.edu/~statmath 56
measures, but LIMDEP produce different standard errors. SAS reports a bit different parameter
estimate of the endogenous variable (.7165 versus .7178) and correlation coefficient (ρ=.5856
versus .5863).
Table 4.1 Parameter Estimates and Goodnessoffit of Bivariate Probit Models
Bivariate Probit Model Recursive Bivariate Probit Model
Stata SAS LIMDEP Stata SAS LIMDEP
Education
.1029
(.0151)
.1029
(.0151)
.1029
(.0141)
.1229
(.0198)
.1229
(.0198)
.1229
(.0233)
Family income
.0203
(.0068)
.0203
(.0068)
.0203
(.0071)
.0226
(.0066)
.0226
(.0066)
.0226
(.0069)
Age
.0161
(.0029)
.0161
(.0029)
.0161
(.0029)
.0127
(.0044)
.0127
(.0044)
.0127
(.0055)
Gender (male)
.1657
(.0766)
.1657
(.0766)
.1657
(.0770)
.1682
(.0744)
.1682
(.0744)
.1682
(.0753)
WWW use
.7178
(.5729)
.7165
(.5741)
.7177
(.7996)
Intercept
2.9270
(.2751)
2.9270
(.2751)
2.9270
(.2749)
2.5312
(.4939)
2.5323
(.4946)
2.5313
(.6281)
Education
.1478
(.0180)
.1478
(.0180)
.1478
(.0176)
.1511
(.0182)
.1511
(.0182)
.1511
(.0179)
Family income
.0189
(.0066)
.0189
(.0066)
.0189
(.0063)
.0188
(.0065)
.0188
(.0065)
.0188
(.0064)
Age
.0104
(.0032)
.0104
(.0032)
.0104
(.0033)
.0102
(.0032)
.0102
(.0032)
.0102
(.0033)
Gender (male)
.0776
(.0865)
.0776
(.0865)
.0776
(.0874)
.0664
(.0866)
.0664
(.0866)
.0664
(.0875)
Intercept
1.3178
(.2898)
1.3178
(.2898)
1.3178
(.2925)
1.3657
(.2929)
1.3657
(.2929)
1.3657
(.2954)
Log likelihood
1297.8205 1298 1297.820 1297.3007 1297 1297.301
Likelihood test
185.87 194.40
Rho (ρ)
.2008
(.0543)
.2008
(.0543)
.2008
(.0543)
.5863
(.3033)
.5856
(.3039)
.5862
(.4248)
χ
2
to test ρ=0
13.1412 2.1296
AIC
2617.641 2618 2617.644 2618.601 2619 2618.607
BIC (Schwarz)
2673.391 2673 2673.386 2679.419 2679 2679.420
*
AIC*N and BIC*N in LIMDEP
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 57
http://www.indiana.edu/~statmath 57
5. Conclusion
The regression models discussed so far are of categorical dependent variables (binary, ordinal,
and nominal responses). An appropriate regression model is determined largely by the
measurement level of the categorical dependent variable of interest. The level of measurement
should be considered in conjunction with theory and research questions (Long 1997). You must
also examine the data generation process (DGP) of a dependent variable to understand its
“behavior.” Experienced researchers pay special attention to censoring, truncation, sample
selection, and other particular patterns of the DGP. These issues are not addressed in this brief
technical note.
Generally speaking, if the dependent variable is binary, you may use the binary logit or probit
regression model. For ordinal responses, try to fit either ordered logit or probit regression
model. If you have a nominal response variable, investigate the DGP carefully and then choose
one of the multinomial logit, conditional logit, and nested logit models. In order to use the
conditional logit and nested logit, you need to reshape the data set in advance.
You should check key assumptions of a model before fitting the model. Examples are the
parallel regression assumption in ordered logit and probit models and the independence of
irrelevant alternatives (IIA) assumption in the multinomial logit model. You may respectively
conduct the Brant test and Hausman test for these assumptions. If an assumption of an ordered
or nominal response model is violated, find alternative models or consider if a dependent
variable can be explored in a binary response model by dichotomizing the variable.
Since logit and probit models are nonlinear, their parameter estimates are difficult to interpret
intuitively. The situation becomes even worse in generalized ordered logit and multinomial
logit models, where many parameter estimates and related statistics are produced.
Consequently, researchers need to spend more time and effort interpreting the results
substantively. Simply reporting parameter estimates and goodnessoffit statistics is not
sufficient. J. Scott Long (1997) and Long and Freese (2003) provide good examples of
meaningful interpretations using predicted probabilities, factor changes in odds, and marginal
effects (discrete changes) of predicted probabilities. It is highly recommended to visualize
marginal effects and discrete changes using a plot of predicted probabilities.
In general, logit and probit models require larger N than do linear regression models. Like the
Bayesian estimation method, the maximum likelihood estimation method depends on data. You
need to check if you have sufficient valid observations especially when your data contain many
missing values. Scott Long‟s rule of thumb says 500 observations and at least additional 10 per
independent variable are required in ML estimation. If you have small N, DO NOT include a
large number of independent variables. This is the so called “small N and large parameter”
problem; you may not be able to reach convergence in estimation and/or may not get reliable
results with desirable asymptotic ML properties. In contrast, an extremely large N, say millions
to estimate only two parameters, is not always a virtue since it absurdly boosts the statistical
power of a test without adding new information. Even a tiny effect, which should have been
negligible in a normal situation, may be mistakenly reported as statistically significant.
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 58
http://www.indiana.edu/~statmath 58
Regarding statistical software packages, I would recommend the SAS LOGISTIC, QLIM, and
MDC procedures of SAS/ETS (see Table 2.1 and 3.1). SAS also has PROC GENMOD and
PROC PROBIT, but PROC LOGISTIC and PROC QLIM appear to be best for binary and
ordinal response models, and PROC MDC is good for nominal dependent variable models.
ODS is another advantage of using SAS. I also strongly recommend using Stata since it
provides handy ways to fit various models and also can be assisted by SPost, which has various
useful commands such as .fitstat, .prchange, .listcoef, .prtab, and .prgen. I
encourage the SAS Institute to develop additional statements similar to, in
particular, .prchange and .prgen.
LIMDEP supports various regression models for categorical dependent variables addressed in
Greene (2003) but does not seem as userfriendly and stable as SAS and Stata. However,
LIMDEP computes direct and indirect effects in the recursive bivariate probit model and helps
researchers interpret the result in more detail. You may benefits from R‟s objectoriented
programming concept and analyze data flexibly in your own way. SPSS is least recommended
mainly due to its limited support for categorical dependent variable models and messy syntax
and output.
For logit and probit models for ordinal and nominal outcome variables, see Park, Hun Myoung.
2009. Regression Models for Ordinal and Nominal Dependent Variables Using SAS, Stata,
LIMDEP, and SPSS. Working Paper. The University Information Technology Services (UITS)
Center for Statistical and Mathematical Computing, Indiana University.”
http://www.indiana.edu/~statmath/stat/all/cdvm/index_nominal.html
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 59
http://www.indiana.edu/~statmath 59
Appendix: Data Sets
The sample data set is a subset of the 2000 and 2002 General Social Survey of NORC
(http://www.norc.org).
http://www.indiana.edu/~statmath/stat/all/cdvm/gss_cdvm.csv
http://www.indiana.edu/~statmath/stat/all/cdvm/gss_cdvm.sas7bdat
http://www.indiana.edu/~statmath/stat/all/cdvm/gss_cdvm.dta
http://www.indiana.edu/~statmath/stat/all/cdvm/cdvm_binary.do (Stata script)
http://www.indiana.edu/~statmath/stat/all/cdvm/cdvm_binary.R (R script)
 trust: 1 if a respondent trust most people
 belief: Religious intensity: no religion (0) through strong (3)
 educate: respondent‟s education (years)
 income: family income ($1,000.00)
 age: respondent‟s age
 male: 1 for male and 0 for female
 www: 1 if a respondent have used WWW
. sum trust belief educate income age male www, sep(20)
Variable  Obs Mean Std. Dev. Min Max
+
trust  1174 .4190801 .4936188 0 1
belief  1174 1.892675 1.044809 0 3
educate  1174 14.24276 2.569712 2 20
income  1174 24.64864 6.19427 .5 27.5
age  1174 41.3075 13.40713 18 86
male  1174 .4505963 .4977653 0 1
www  1174 .7853492 .4107548 0 1
. tab trust male, miss
Social  Gender
Trust  Female Male  Total
++
0  397 285  682
1  248 244  492
++
Total  645 529  1,174
. tab trust www, miss
Social  WWW Use
Trust  Nonusers Users  Total
++
0  180 502  682
1  72 420  492
++
Total  252 922  1,174
. tab male www, miss
 WWW Use
Gender  Nonusers Users  Total
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 60
http://www.indiana.edu/~statmath 60
++
Female  149 496  645
Male  103 426  529
++
Total  252 922  1,174
. tab belief male, miss
Religious  Gender
Intensity  Female Male  Total
++
No religion  80 112  192
Somewhat strong  79 55  134
Not very strong  239 217  456
Strong  247 145  392
++
Total  645 529  1,174
. tab belief www, miss
Religious  WWW Use
Intensity  Nonusers Users  Total
++
No religion  38 154  192
Somewhat strong  37 97  134
Not very strong  95 361  456
Strong  82 310  392
++
Total  252 922  1,174
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 61
http://www.indiana.edu/~statmath 61
References
Allison, Paul D. 1991. Logistic Regression Using the SAS System: Theory and Application.
Cary, NC: SAS Institute.
Cameron, A. Colin, and Pravin K. Trivedi. 2005. Microeconometrics: Methods and
Applications. New York: Cambridge University Press.
Cameron, A. Colin, and Pravin K. Trivedi. 2009. Microeconometrics Using Stata. TX: Stata
Press.
Greene, William H. 1996. Marginal Effects in the Bivariate Probit Model. Stern School of
Business, New York University.
Greene, William H. 2003. Econometric Analysis, 5
th
ed. Upper Saddle River, NJ: Prentice Hall.
Greene, William H. 2007. LIMDEP Version 9.0 Econometric Modeling Guide. Plainview, New
York: Econometric Software.
Long, J. Scott, and Jeremy Freese. 2003. Regression Models for Categorical Dependent
Variables Using Stata, 2
nd
ed. College Station, TX: Stata Press.
Long, J. Scott. 1997. Regression Models for Categorical and Limited Dependent Variables:
Advanced Quantitative Techniques in the Social Sciences. Sage Publications.
Maddala, G. S. 1983. Limited Dependent and Qualitative Variables in Econometrics. New
York: Cambridge University Press.
Park, Hun Myoung. 2004. "Presenting the Binary Logit/Probit Models Using the SAS/IML."
Proceedings of the 15th Midwest SAS Users Group Conference in Chicago, IL
(September 2628, 2004).
SAS Institute. 2004. SAS/STAT 9.1 User's Guide. Cary, NC: SAS Institute.
SPSS Inc. 2007. SPSS 16.0 Command Syntax Reference. Chicago, IL: SPSS Inc.
Stata Press. 2007. Stata Base Reference Manual, Release 10. College Station, TX: Stata Press.
Stokes, Maura E., Charles S. Davis, and Gary G. Koch. 2000. Categorical Data Analysis Using
the SAS System, 2
nd
ed. Cary, NC: SAS Institute.
Acknowledgements
I am grateful to Jeremy Albright and Kevin Wilhite at the UITS Center for Statistical and
Mathematical Computing for comments and suggestions. I also thank J. Scott Long in
Sociology and David H. Good in the School of Public and Environmental Affairs, Indiana
University. A special thanks to many readers around the world who have eagerly provided
constructive feedback and encouraged me to keep improving this document.
Revision History
 2003. 04 First draft
 2004. 07 Second draft
 2005. 09 Third draft (Added bivariate logit/probit and nested logit models)
 2008. 10 Fourth draft (Added SAS ODS and SPSS output)
 2009. 09 Fifth draft (Estimated models using different data and rewrote chapter 24)
© 20032010, The Trustees of Indiana University Regression Models for Binary Dependent Variables: 62
http://www.indiana.edu/~statmath 62
 2010. Edited by Dani Marinova.
© 20032010, The Trustees of Indiana University
Regression Models for Binary Dependent Variables: 2
This document summarizes logit and probit regression models for binary dependent variables and illustrates how to estimate individual models using Stata 11, SAS 9.2, R 2.11, LIMDEP 9, and SPSS 18.
1. 2. 3. 4. 5.
Introduction Binary Logit Regression Model Binary Probit Regression Model Bivariate Probit Regression Models Conclusion References
1. Introduction
A categorical variable here refers to a variable that is binary, ordinal, or nominal. Event count data are discrete (categorical) but often treated as continuous variables. When a dependent variable is categorical, the ordinary least squares (OLS) method can no longer produce the best linear unbiased estimator (BLUE); that is, OLS is biased and inefficient. Consequently, researchers have developed various regression models for categorical dependent variables. The nonlinearity of categorical dependent variable models makes it difficult to fit the models and interpret their results. 1.1 Regression Models for Categorical Dependent Variables In categorical dependent variable models, the lefthand side (LHS) variable or dependent variable is neither interval nor ratio, but rather categorical. The level of measurement and data generation process (DGP) of a dependent variable determine a proper model for data analysis. Binary responses (0 or 1) are modeled with binary logit and probit regressions, ordinal responses (1st, 2nd, 3rd, …) are formulated into (generalized) ordinal logit/probit regressions, and nominal responses are analyzed by the multinomial logit (probit), conditional logit, or nested logit model depending on specific circumstances. Independent variables on the righthand side (RHS) are interval, ratio, and/or binary (dummy). Table 1.1 Ordinary Least Squares and Categorical Dependent Variable Models Model Dependent (LHS) Estimation Independent (RHS) OLS Categorical DV Models
Ordinary least squares Binary response Ordinal response Nominal response Event count data Interval or ratio Binary (0 or 1) Ordinal (1st, 2nd , 3rd…) Nominal (A, B, C …) Count (0, 1, 2, 3…) Moment based method Maximum likelihood method A linear function of interval/ratio or binary variables
0 1 X 1 2 X 2 ...
Categorical dependent variable models adopt the maximum likelihood (ML) estimation method, whereas OLS uses the moment based method. The ML method requires an assumption about probability distribution functions, such as the logistic function and the complementary loglog
http://www.indiana.edu/~statmath
2
© 20032010, The Trustees of Indiana University
Regression Models for Binary Dependent Variables: 3
function. Logit models use the standard logistic probability distribution, while probit models assume the standard normal distribution. This document focuses on logit and probit models only, excluding regression models for event count data (e.g., negative binomial regression model and zeroinflated or zerotruncated regression models). Table 1.1 summarizes categorical dependent variable models in comparison with OLS. 1.2 Logit Models versus Probit Models How do logit models differ from probit models? The core difference lies in the distribution of errors (disturbances). In the logit model, errors are assumed to follow the standard logistic 2 e distribution with mean 0 and variance , ( ) . The errors of the probit model are 3 (1 e ) 2
1 2 assumed to follow the standard normal distribution, ( ) with variance 1. e 2
2
Figure 1.1 The Standard Normal and Standard Logistic Probability Distributions
PDF of the Standard Normal Distribution
CDF of the Standard Normal Distribution
PDF of the Standard Logistic Distribution
CDF of the Standard Logistic Distribution
The probability density function (PDF) of the standard normal probability distribution has a higher peak and thinner tails than the standard logistic probability distribution (Figure 1.1). The standard logistic distribution looks as if someone has weighed down the peak of the standard normal distribution and strained its tails. As a result, the cumulative density function (CDF) of the standard normal distribution is steeper in the middle than the CDF of the standard logistic distribution and quickly approaches zero on the left and one on the right.
http://www.indiana.edu/~statmath
3
LOGISTIC. In general.logistic Binary Binary probit . PROBIT QLIM. LIMDEP. end up with almost the same standardized impacts of independent variables (Long 1997). a standalone package.biprobit .logit. GENMOD. and SPSS are not. CATMOD LOGISTIC. a probit model works well for bivariate models. Logit$ Clogit$. . In binary response models. LOGISTIC. Table 1.2 Procedures and Commands for Categorical Dependent Variable Models Model Stata 11 SAS 9.nlogit Nlogit$** . Logit$ Plum Ordinal Generalized logit Ordinal probit . Although some (multinomial) probit models may take a long time to reach convergence. GENMOD. 1.© 20032010. LIMDEP. For discussion of selecting logit or probit models.3 Estimation in SAS.ologit QLIM.edu/~statmath 4 .mprobit mnp() Multinomial probit * A userwritten command written by Williams (2005) ** The Nlogit$ command is supported by NLOGIT.mlogit . and SPSS Table 1. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 4 The two models.oprobit logit() polr() Ordered$ Plum Nominal Multinomial logit Conditional logit .indiana.clogit multinom().2 summarizes the procedures and commands used for categorical dependent variable models. http://www. These estimators. but SAS. LOGISTIC. importance of this issue is diminishing.2 R LIMDEP 9 SPSS17 . PHREG MDC  glm() Logit$ Logistic regression glm() Probit$ Probit bprobit() lrm() Bivariateprobit$ Ordered$. MDC.gologit2* . PROBIT LOGISTIC.probit Bivariate probit Bivariate Ordinal logit . mlogit() clogit() Mlogit$. The choice between logit and probit models is more closely related to estimation and familiarity than to theoretical or interpretive aspects. As computing power improves and new algorithms are developed. Stata. LOGISTIC. see Cameron and Trivedi (2009: 471474). PROBIT QLIM QLIM. R. Note that Stata and R are casesensitive. the estimates of a logit model are roughly 3 times larger than those of the probit model. GENMOD. GENMOD. PROBIT QLIM. produce different parameter estimates. Logit$ Nomreg Coxreg Nested logit . logit models reach convergence fairly well. which is sold separately.regress lme() REG Regress$ Regression OLS Binary logit . however. of course.
glm() fits binary logit and probit models in the object. Once SAS output is generated in an HTML document.edu/~jslsoc/stata/ . MDC. PROC QLIM also handles BoxCox regression and the bivariate probit model.oriented programming concept. GENMOD.probit commands respectively fit the binary logit and probit models. replace 1 An advantage of using SAS is the Output Delivery System (ODS). net get spost9_do. Stata enables users to perform posthoc analyses such as marginal effects and discrete changes in an easy manner. See section 2. The nested logit model and multinomial probit model in LIMDEP are estimated by NLOGIT. a separate package. For example. This collection of userwritten commands conducts many followup analyses of various categorical dependent variable models including event count data models. Visit J. QLIM.indiana.edu/~jslsoc/ to get further information. such as PROC LOGISTIC.logit and . while . users can easily handle tables and graphics especially when copying and pasting them into a wordprocessor document. and CATMOD. but PROC QLIM and PROC MDC of SAS/ETS have advantages over other procedures.nlogit estimate the mulitinomial logit and nested logit models. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 5 Stata offers multiple commands for categorical dependent variable models. The output format of LIMDEP 9 is slightly different from that of previous version. ODS enables users to redirect the output to HTML (Hypertext Markup Language) and RTF (Rich Text Format) formats. 1. a categorical dependent variable model can be estimated by multiple procedures.mlogit and . Scott Long and Jeremy Freese‟s SPost. In order to install SPost. execute the following commands consecutively.4 Long and Freese’s SPost Stata users may benefit from userwritten commands such as J. but key statistics remain unchanged. http://www. The LIMDEP Logit$ and Probit$ commands support a variety of categorical dependent variable models that are addressed in Greene‟s Econometric Analysis (2003). net install spost9_ado. .indiana. PROBIT. net from http://www. and PROBIT. PROC LOGISTIC reports factor changes in the odds and tests key hypotheses of a model. which makes it easy to manage SAS output. you may run a binary logit model using PROC LOGISTIC. PHREG. For example. truncated.indiana. the .1 In R. The QLIM (Qualitative and LImited dependent variable Model) procedure in SAS analyzes various categorical and limited dependent variable regression models such as censored. and sampleselection models. GENMOD. Since these procedures support various models.© 20032010.2 for the most common SPost commands. PROC LOGISTIC and PROC PROBIT of SAS/STAT have been commonly used. SPSS also supports some categorical dependent variable models and its output is often messy and hard to read. Scott Long‟s Web site at http://www. The MDC (Multinomial Discrete Choice) procedure can estimate conditional logit and nested logit models. Multiple other functions have been developed to fit other categorical dependent variable models.edu/~statmath 5 . replace . QLIM. SAS provides several procedures for categorical dependent variable models.
This chapter illustrates how to fit the binary logit model. run the .logit command produces coefficients with respect to logit (log of odds).007768 1.04 0.163673 . The binary logit model is represented as Prob( y 1  x) ( x ) 2.038276 male  1. and Internet use (www).indiana. or userwritten command does not work in version 11.0304619 5. Interval] +educate  1.79 0.logistic command. logit (output is skipped) Or you may run a separate .009 1.logistic reports odd ratios.028411 . while . Interpretation of the odds ratio will be discussed in Section 2. family income.logit) Stata provides two equivalent commands for the binary logit model that present the same result in different ways. normal() was norm() in old versions.© 20032010.2885914 3. The sample model considered here explores how social trust is affected by education.105474 1.63 0. z P>z [95% Conf. function. For example.1 Binary Logit Model in Stata (.edu/~statmath 6 . gender.000 1.408153  This model fits the data very well (p<. . version 9 Also you may update Stata or reinstall userwritten commands to get their latest version installed.logit without any argument right after the .224935 income  1. update all 2. the cumulative standard logistic distribution function. http://www.292781 .054387 age  1.001 1. age. . In order to get the coefficients (log of odds).654362 www  1.version command to switch the interpreter to old one and execute that command again. simply run .030814 . .162669 2. logistic trust educate income age male www Logistic regression Log likelihood = 733.000 1. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 6 If a Stata command.01 level. Both commands report the same goodnessoffit measures such as likelihood ratio and McFadden‟s pseudo R2.0050091 5.010228 1.0806 trust  Odds Ratio Std.34 0.0000) and all independent variables except for gender are statistically significant at the . .logit command with all arguments. where Λ 1 exp( x ) indicates a link function.97164 Number of obs LR chi2(5) Prob > chi2 Pseudo R2 = = = = 1174 128.68 0. Binary Logit Regression Model exp( x ) .041 1.0118919 2.25686 2.01864 1. The .2.739745 .0000 0. Err.75 0.
1658815 3.478359 10.0115364 2.53 0. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 7 .009 .0280152 . Education has a significant positive impact on social trust. xb denotes all independent variables other than xb Marginal effects and discrete changes look similar but are not equal in conceptual and numerical senses.97164 Number of obs LR chi2(5) Prob > chi2 Pseudo R2 = = = = 1174 128.983007 .0375616 male  .0000 Marginal effects and discrete changes are very useful when interpreting the result of a binary logit or probit model.0101762 . predict resid.001 .920574 4.5034157 www  .1515812 . Err.000 .1516= log(1. For example.04 0.0806 Logistic regression Log likelihood = 733. Std. z P>z [95% Conf.8788601 _cons  4.2286165 . logit trust educate income age male www Iteration Iteration Iteration Iteration 0: 1: 2: 3: log log log log likelihood likelihood likelihood likelihood = = = = 798.25733 733.0303485 .© 20032010.1637) or 1.indiana. The marginal effect of a continuous independent variable xc is the partial derivative with respect to that variable.test and .1637=exp(.256796 . Stata has postestimation commands that conduct followup analyses.041 . The discrete change of a binary independent variable (dummy variable) xb is the difference in predicted probabilities of xb 1 and xb 0 .63 0.predict command with the residual option computes residuals and then stores them into a new variable resid.5537383 .2028879 income  .edu/~statmath 7 .0529595 age  . .lrtest commands respectively conduct the Wald test and likelihood ratio test.97169 733.42 0.1516).1258287 2.68 0.97164 trust  Coef.045441  A coefficient of .34 0. P( y 1  x) exp( x ) ( x )(1 ( x ) c (marginal effect of xc ) xc [1 exp( x )]2 http://www.0048707 5.0184688 . .logistic.0000 0.79 0. Interval] +educate  .000 5. holding all other independent variables constant at their reference points.31217 734.000 . residual The . the coefficient of education is . A large chisquared rejects the null hypothesis that the parameter of education is zero. test educate ( 1) [trust]educate = 0 chi2( 1) = Prob > chi2 = 33.0077376 .logit is the corresponding logarithmic transformed odds ratio of .1002745 . The following .75 0.0261774 5.
mean in the at() option below says that if a covariate is not listed in at().140 0.78 percent. fitstat LogLik Intercept Only: D(1168): McFadden's R2: ML (CoxSnell) R2: McKelvey & Zavoina's R2: Variance of y*: Count R2: 798.03132 2. the default option.004606 .3075 male* .024873 .105 3.1746. WWW users are 13.681 0. Marginal effects and discrete changes are listed under dy/dx.000 0..654 LogLik Full Model: LR(5): Prob > LR: McFadden's Adj R2: CraggUhler(Nagelkerke) R2: Efron's R2: Variance of error: Adj Count R2: 733. net install spost9_ado. holding other covariates at the reference points.edu/~jslsoc/stata/) checking spost9_ado consistency and verifying not already installed.972) and 1.175 http://www. computes marginal effects for continuous covariates and discrete changes for binary variables at the reference points after the estimation of a linear or nonlinear regression model.168=NK=1.29 percent more likely than nonusers to trust people. If this option is not specified.mfx command with dydx (partial derivatives).943 0.03797 3. You may change reference points using the at() option.081 0.058487 . The Trustees of Indiana University Regression Models for Binary Dependent Variables: 8 P( y 1  x) P( y 1  xb . .073 0. Akaike Information Criterion (AIC).75 0.013203 24.001934 .50 0.972 128. mfx.0640968 .6486 age  .4753 for female WWW users at the average age of 41 who graduated a college (16 years of education) and have average family income of 25 thousands dollars. where K denotes the number of parameters including the intercept..edu/~statmath 8 . its mean is used as its reference point.050734 16 income  .104 0. Err. For a year increase in education after college graduation.000 .041 .000 .0069868 .009367 41.indiana.312 1467. The . McFadden‟s R2 (or Pseudo R2).0066 5. replace from(http://www. .05 0.73 0.140 3. z P>z [ 95% C.826 0.943 labeled as D(1168) is 2*Loglikelihood (=2*733.290 0. holding other independent variables constant at the reference points (see the list of values under the label x).0075687 .indiana.000 . dydx at(mean educate=16 male=0 www=1) Marginal effects after logit y = Pr(trust) (predict) = .2 Using SPost Commands in Stata SPost commands provide useful followup analysis commands (ado files) for categorical dependent variable models (Long and Freese 2003). ] X +educate  . 1467.fitstat command reports various goodnessoffit measures such as log likelihood. the predicted probability of trusting people will increase by 3.1329051 .47534926 variable  dy/dx Std.63 0.008 .00287 2. and Bayesian Information Criterion (BIC).© 20032010.002718 .207323 1 (*) dy/dx is for discrete change of dummy variable from 0 to 1 The predicted probability of trusting most people is .0378032 . xb 0) (discrete change of xb ) xb The .00121 5. 2. . Stata by default uses means of independent variables as reference points.I.125475 0 www* . xb 1) P( y 1  xb .
for example. for a standard deviation change in education. and standardized coefficients. 128.2928 1.02802 5.edu/~statmath 9 . help logit (N=1174): Factor Change in Odds Odds of: 1 vs 0 trust  b z P>z e^b e^bStdX SDofX +educate  0. holding all other variables constant.4071 male  0.000 1. P( y 1  x) P( y 1  x) ( x ) P( y 0  x) 1 P( y 1  x) 1 ( x ) ( xodds. The odds ratio is used to examine the change in the odds when an independent variable xodds increases by .261 6787.15158 5. listcoef. Notice that the last column under SDofX lists standard deviations of covariates.listcoef command produces a table of unstandardized coefficients (parameter estimates).© 20032010. The binary logit (log of the odds) model can be expressed in a loglinear form of ln ( x) x . where (x) is the odds of the success (y=1) given x (Long 1997: 79). .03035 2.682 1510.631 0. the odds of having NO http://www. For a standard deviation change in education. Long (1997) discusses interpretation of binary response models using factor changes in odds and predicted probabilities. the odds ratios that . xodds ) Odds ratio: exp( odds ) ( xodds.25680 2.4763=exp(.352 AIC*n: BIC': AIC used by Stata: 1479. xodds) The odds: ( x) The .listcoef.1364 0.4108 b = raw coefficient z = zscore for test of b=0 P>z = pvalue for ztest e^b = exp(b) = factor change in odds for unit increase in X e^bStdX = exp(b*SD of X) = change in odds for SD increase in X SDofX = standard deviation of X You may interpret factor change in odds in a reverse way. a odds ratio greater than 1 means that the odds increase as that variable increase by (pp.1516).1943 age  0.2928=exp(.943 The likelihood ratio statistic is based on the difference of log likelihoods between the null model and the full model.logistic produced on page 6.55374 3. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 9 AIC: BIC: BIC used by Stata: 1.7397 1.009 1.1637=exp(.338 0.4763 2.2068 6.340 1479. 8082). Pay attention to reverse of the .4978 www  0.1516*2.1637 1. Find factor changes in odds under the labels e^b and e^bStdX.312)(733.041 1.5697).972)].943 93. The odds of trusting people are 1.752 0.000 1. Alternatively.68=2*[(798. the odds are expected to increase by a factor of 1. The help option helps read the output of .041 0.5697 income  0. Factor changes in odds are.0284 1.indiana.0308 1.791 0. in fact. the odds will change by a factor of 1. factor (percent) changes in odds.4559 13. For a unit increase in education.001 1.listcoef command.2568) times larger for men than for women.2554 0.
041 0. .7735 0.15158 5.1943 age  0. listcoef.2568) times smaller for men than for women.8286 6. you may use percent changes in the odds by adding the percent option.4071 male  0.3 13.1943 age  0. holding all other covariates constant. The labels e^b and e^bStdX below should be e^(b) and e^(bStdX). that 47.55374 3.7735=exp(.1516*2.31).5723] male 0 www 1 age 41.009 0.25680 2.4071 male  0.8 45.6 2. prvalue.03035 2.338 0. income=24.47 percent will not. Interval [ 0. respectively. The odds of NOT trusting people are .001 0.752 0.791 0.338 0.5247 income 24. .55374 3.001 74.000 0. percent help logit (N=1174): Percentage Change in Odds Odds of: 1 vs 0 trust  b z P>z % %StdX SDofX +educate  0.edu/~statmath 10 . The following example predicts.7966 0.5697 income  0. while 52.4108  Alternatively.6 13.000 2.6774=exp(.0 25.5697 income  0.© 20032010. 0.1 20.03035 2.4277.8593 0.8800 0.5 0.752 0.15158 5.9724 0.009 3. 0.25680 2.041 0.4 47.4978 www  0.6869 13.4978 www  0.4108 b = raw coefficient z = zscore for test of b=0 P>z = pvalue for ztest % = percent change in odds for unit increase in X %StdX = percent change in odds for SD increase in X SDofX = standard deviation of X The .02802 5.5697).5748 0.mfx above.65.631 0.307496 http://www.prvalue command lists predicted probabilities of positive and negative outcomes for a given set of values for the independent variables.4770.791 0.53 percent of female WWW users will trust most people at the reference points (educate=16.3 percent larger for men than for women. age=41.041 29. For example.6774 2.5230] [ 0.631 0.02802 5. listcoef.9701 0.6 0. x(educate=16 male=0 www=1) rest(mean) logit: Predictions for trust Confidence intervals by delta method Pr(y=1x): Pr(y=0x): x= educate 16 0. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 10 social trust are expected to decrease by a factor of .648637 95% Conf. as shown in .7 6.000 16.4753 0.041 0. the odds of trusting people are 29.000 0. . reverse logit (N=1174): Factor Change in Odds Odds of: 0 vs 1 trust  b z P>z e^b e^bStdX SDofX +educate  0.indiana.
78 percent (marginal effect) when holding all other covariates constant at their reference points.4753 income 24.0641 0.0567 MargEfct 0. For an additional year of education after college.0378 0. The table below suggests that male WWW users are more likely to trust than their counterparts (53.5394 x= educate 16 income 24. The rest() option sets the reference points of independent variables that are not specified in x().1329 +1/2 0. http://www. Read marginal effects under the last MargEfct (or +1/2) column and discrete changes under 0>1 (when changing the value from 0 to 1).0319 0.5247 0>1 0.prtab command constructs a table of predicted values (probabilities) for all combinations of categorical variables listed.24 percent.56971 SPost .0111 0.5264 0.1936 0.0640 0.497765 www 1 .0934 0.0076 0.0968 0. prchange.1372 +sd/2 0.4753 and the marginal effects (discrete changes) are the same as what . . x(educate=16 male=0 www=1) rest(mean) logit: Predicted probabilities of positive outcome for trust  WWW Use Gender  Nonusers Users +Female  0.29 percent (discrete change) more likely than nonusers to trust people. respectively). the predicted probability of trusting people is expected to increase by 3.3075 13.0468 0.0640 0.4753 that female WWW users trust most people. The x() option specifies particular values of covariates other than their means as reference points.prgen computes a series of predictions (predicted probabilities in this case) by holding all variables but one interval variable constant and allowing that variable to vary (Long and Freese 2003). Both . The Trustees of Indiana University Regression Models for Binary Dependent Variables: 11 The .4024 0.1329 0 0.© 20032010.1381 1 0.edu/~statmath 11 .6486 6.prchange.4397 0.3424 0.mfx produced above.0064 0.410755 educate 16 2.prvalue report the same predicted probability of . The first command below computes predicted probabilities that male WWW users (male=1 and www=1) trust most people when education changes from 0 through 20 years. x(educate=16 male=0 www=1) rest(mean) logit: Changes in Probabilities for trust educate income age male www Pr(yx) x= sd_x= min>max 0.307496 male 0 www 1 The most useful command for binary response models is .0049 0.indiana.0070 0. WWW users are 13.19427 age 41.648637 age 41. prtab male www. .0378 0. The predicted probability of .0070 0. holding other variable at their reference points.4071 male 0 .0641 0.prtab and .0076 0. which calculates marginal effects and discrete changes at a given set of values of independent variables.4753 Male  0.94 percent versus 34.
648637 age 41. whose names begin with Logit_ed11.1 Predicted Probabilities of Trusting Most People (Binary Logit Model) WWW Nonusers 1 WWW Users 0 1 .© 20032010. from(0) to(20) ncases(20) x(male=0 www=1) rest(mean) gen(Logit_ed01) logistic: Predicted values as educate varies from 0 to 20. prgen educate. from(0) to(20) ncases(20) x(male=1 www=1) rest(mean) gen(Logit_ed11) logit: Predicted values as educate varies from 0 to 20.307496 male 1 www 0 .24276 income 24.4 . The Trustees of Indiana University Regression Models for Binary Dependent Variables: 12 holding other independent variables at the reference points. prgen educate.indiana. x= educate 14. prgen educate.307496 male 1 www 1 . x= educate 14. x= educate 14.307496 male 0 www 1 . prgen educate. and then stores them into new variables. x= educate 14.24276 income 24.648637 age 41.648637 age 41.2 . from(0) to(20) ncases(20) x(male=0 www=0) rest(mean) gen(Logit_ed00) logistic: Predicted values as educate varies from 0 to 20.edu/~statmath 12 . . from(0) to(20) ncases(20) x(male=1 www=0) rest(mean) gen(Logit_ed10) logistic: Predicted values as educate varies from 0 to 20.24276 income 24.6 .648637 age 41.24276 income 24.307496 male 0 www 0 Figure 2.8 3 5 7 9 11 13 15 17 19 1 3 5 7 9 11 13 15 17 19 Education (Years) Men Graphs by bygroup Women http://www.
As a consequence. PROBIT. MODEL trust(EVENT=LAST) = educate income age male www. Alternatively. The LOGISTIC Procedure Model Information Data Set Response Variable Number of Response Levels Model Optimization Technique MASIL. and female nonusers). but PROC PROBIT is also able to estimate the binary logit model. PROC LOGISTIC is commonly used for the binary logit model. Stata. LOGISTIC.1. Figure 2. female users. each of which ends with a semicolon. you can draw Figure 2.3 Binary Logit Model in SAS: PROC LOGISTIC and PROC PROBIT SAS has several procedures for the binary logit model such as LOGISTIC. Both approaches produce the same results. PROBIT. RUN. 2.gss_cdvm.edu/~statmath 13 . PROC LOGISTIC DATA = masil. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 13 After generating predicted probabilities of other groups (male WWW nonusers. GENMOD. and LIMDEP.gss_cdvm. PROC LOGISTIC DESCENDING DATA = masil. and GENMOD procedures by default use a smaller value in the dependent variable as success (positive event).© 20032010.indiana. MODEL trust = educate income age male www. and QLIM procedures. but their signs are opposite to those of PROC QLIM. See the Stata script in Appendix for necessary data manipulation. Notice that a SAS procedure is comprised of a series of statements. you may explicitly specify the category of successful event using the EVENT option. EVENT=LAST (or EVENT=‟1‟) use the last ordered category (1) as a successful event.1 suggests that education and WWW use influence social trust significantly but gender does not. RUN. The DESCENDING (DESC) option in PROC LOGISTIC and PROC GENMOD forces SAS to use a larger value as success. magnitudes of the coefficients remain the same. Unlike PROC QLIM.GSS_CDVM trust 2 binary logit Fisher's scoring trust Number of Observations Read Number of Observations Used 1174 1174 Response Profile Ordered Value 1 2 Total Frequency 492 682 trust 1 0 http://www.
edu/~statmath 14 .1659 Wald ChiSquare 108.9200 33.0824 4.373 http://www.5302 6.293 1.2568 0. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 14 Probability modeled is trust=1.0008 Odds Ratio Estimates Point Estimate 1.371 0.654 2.028 1.352 1467.0001 <.408 Effect educate income age male www Association of Predicted Probabilities and Observed Responses Percent Concordant Percent Discordant 68. Model Convergence Status Convergence criterion (GCONV=1E8) satisfied.0262 0.4 31.257 1.693 1596.0001 0.0001 0.© 20032010.624 Testing Global Null Hypothesis: BETA=0 Test Likelihood Ratio Score Wald ChiSquare 128.5537 Pr > ChiSq <.943 Criterion AIC SC 2 Log L Intercept Only 1598.0001 <.054 1.164 1.indiana.0115 0.1431 Parameter Intercept educate income age male www DF 1 1 1 1 1 1 Estimate 4. Model Fit Statistics Intercept and Covariates 1479.225 1.1258 0.4784 0.3 Somers' D Gamma 0.00487 0.5101 33.019 1.943 1510.1650 11.9830 0.5344 109.105 1.6453 DF 5 5 5 Pr > ChiSq <.0280 0.740 95% Wald Confidence Limits 1.0085 <.031 1.008 1.010 1.0303 0.1516 0.038 1.0413 0.624 1603.0001 Analysis of Maximum Likelihood Estimates Standard Error 0.6811 121.0001 <.
The output is skipped. The odds of having social trust are 1. UNITS educate=SD income=SD age=SD. the odds of having no social trust are .943 and 1510.© 20032010.2. Stata‟s z score 5.207=exp(. MODEL trust(EVENT='1') = educate income age male www.624). The SD in UNITS indicates a standard deviation increase in covariates listed (educate.5697 6.943/2). ODS HTML CLOSE. PROC LOGISTIC DATA = masil. Stata and SAS respectively conduct z test and Wald test to examine the effects of individual independent variables but produce the same pvalues. respectively. Likelihood ratio is 128.1943 13. PROC LOGISTIC by default reports odds changes when independent variables increase by a unit. If you are not familiar with SAS. You may find the same number under e^bStdX of .681=1596.293=exp(. you may skip this part. the odds of having social trust are expected to change by a factor of 1.476 1.943.edu/~statmath 15 .352.6241467. The Trustees of Indiana University Percent Tied Pairs Regression Models for Binary Dependent Variables: 15 0. . UNITS adds factor changes in odds to the end of the LOGISTIC output.2568) times larger for men than for women. The odds changes (ratios) under Odds Ratio Estimates are the same as what Stata .0303).686 Stata and SAS produce the same results. holding all other covariates constant. .031=exp(.0806=1(1467. and age in this example). Log likelihood is 733. Read numbers under Odds Ratios (other output is skipped below). . in both outputs. For example.943. Odds Ratios Effect educate income age Unit 2. except for rounding errors.53.gss_cdvm. For a unit ($1.2.79 for education is the square root of the Wald statistic 33. the odds are expected to increase by a factor of 1.4071 Estimate 1. See Park (2004) for computation in detail. PROC LOGISTIC . The first step is to get parameter estimates and http://www.000) increase in family income. .listcoef in Section 2. AIC and BIC (or Schwarz information criterion) are 1479. McFadden‟s pseudo R2 is .7734=exp(. If you want to get the output in the HTML format. conversely. SAS report 2*log likelihood 1467. For a standard deviation increase in family income. Parameter estimates and their standard errors are the same.1943). use ODS statements before and after a SAS procedure. income.456 Let us compute marginal effects manually.207 1.2568) times smaller for men than for women.181 0.9716 =(1467.4 335544 Taua c 0.listcoef produced in Section 2. ODS HTML redirects SAS output to the HTML format.indiana. RUN. The UNITS statement specifies a unit other than means of covariates. ODS HTML. However.943/1596. .0303*6.
Factor changes in the odds are also listed under labels exp(b) and exp(b*sdX). USE masil.307496 0 prob 1 0. /* get a row vector of parameter estimates */ READ ALL VAR{Intercept educate income age male www} INTO bHat.]. /* set reference points */ referX[1. (output is skipped) Next. Notice that SAS.648637 41. convert two SAS data sets into matrices.meanX. /* a row vector of standard deviations of independent variables */ referX = meanX. referX[1. QUIT. referX[1. respectively. VAR educate income age male www. Then.blm.meanX.0640 and .© 20032010.2.6]=1. RUN. referX 1 16 24.gss_cdvm OUTEST=masil.5]=0. Compare marginal effects with what . bHat and X in PROC IML.blm. MODEL trust = educate income age male www. male=0. margin = prob * (1prob) * T(bHat).1381 are not correct discrete changes of gender and WWW use. PROC MEANS MEAN STD DATA = masil. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 16 reference points. meanX = {1}  X[4.2]=16. /* education=16. PROC LOGISTIC DESCENDING DATA = masil. /* terminate PROC IML */ The following is the output of the PROC IML above. compute predicted probability and marginal effects. prob = exp(xb)/(1+exp(xb)).4753497 http://www.meanX.blm. is not caseinsensitive. result = result[2:K. www=1 */ xb = bHat * T(referX).].]. "income". unlike Stata and R. "www"} COLNAME={"b" "exp(b)" "exp(b*sdX)" "MargEffect" "MargEffect(SD)" "Mean of X" "SD of X"}]. OUTPUT OUT=masil. add OUTEST=masil.edu/~statmath 16 .gss_cdvm. "male". /* compute a predicted probability */ PRINT referX prob. result = T(bHat)  T(exp(bHat))T(exp(bHat # sdX))  marginmarginSD  T(meanX)T(sdX). Pay attention to comments enclosed by /* and */.indiana. In PROC LOGISTIC. PRINT result[ROWNAME={"educate". "age". /* a row vector of means of independent variables */ sdX = {0}  X[5. K=NCOL(bHat). /* compute marginal effects */ marginSD = prob * (1prob) * T(bHat # sdX). PROC IML. READ ALL VAR{educate income age male www} INTO X. PROC MEANS with MEAN and STD computes means and standard deviations of variables listed in the VAR statement and then store them into masil.blm to store parameter estimates into a SAS data set masil. /* get the number of regressors */ USE masil.prchange reported in Section 2. Notice that .
7853492 SD of X 2.0378031 0. PROC PROBIT DATA = masil.0640427 0.407127 0.7397362 1.0280151 0.255393 0.046881 0.648637 41.0284112 1.0936722 0.edu/~statmath 17 . Algorithm converged.2567949 0.0308127 1.0318782 0.1942699 13.0075684 0.4977653 0.97164 trust Number of Observations Read Number of Observations Used 1174 1174 Class Level Information Name trust Levels 2 Values 0 1 Response Profile Ordered Value 1 2 Total Frequency 682 492 trust 0 1 PROC PROBIT is modeling the probabilities of levels of trust having LOWER Ordered Values in the response profile table.056724 14.GSS_CDVM trust 1174 Logistic 733. The /DIST=LOGISTIC option indicates the link function (probability distribution) to be used in maximum likelihood estimation.gss_cdvm.1636722 1.indiana.24276 24.4558671 1.1380969 0.0069867 0.0303475 0. RUN.5537335 result exp(b) exp(b*sdX) MargEffect MargEffect(SD) Mean of X 1.307496 0. Type III Analysis of Effects http://www.1363525 1.5697123 6.2068103 1.29278 1.4762701 1.© 20032010.4107548 PROC PROBIT is primarily designed for the binary probit model but can estimate the same binary logit model as well. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 17 b educate income age male www 0. The Probit Procedure Model Information Data Set Dependent Variable Number of Observations Name of Distribution Log Likelihood MASIL. MODEL trust = educate income age male www /DIST=LOGISTIC.097143 0.4505963 0.1515807 0.
0085 <.0413 0.1258 0. MODEL trust = educate income age male www /DISCRETE(DIST=LOGIT). RUN.51 33. ENDOGENOUS trust ~ DISCRETE(DIST=LOGIT).0262 0. truncated. you have to switch the signs of coefficients when comparing with PROC LOGISTIC.91 Model Fit Summary Number of Endogenous Variables 1 http://www.edu/~statmath 18 .0001 0. PROC PROBIT does not have the DESCENDING (or DESC) option.2286 ChiSquare Pr > ChiSq 108.0008 Analysis of Maximum Likelihood Parameter Estimates Standard Error 0.1659 95% Confidence Limits 4.53 6.gss_cdvm.0077 0.0530 0.1003 0. and LIMDEP.0102 0.0001 0.0008 Parameter Intercept educate income age male www DF Estimate 1 1 1 1 1 1 4.9206 0.0303 0.0115 0.4784 0. You may provide the probability distribution of a dependent variable in the ENDOGENOUS statement or in the DISCRETE option of the MODEL statement.17 11. but also censored.indiana.92 33.2568 0. 2.0413 0.5034 0.0827 4.4 Binary Logit Model in SAS: PROC QLIM and PROC GENMOD PROC QLIM estimates not only logit and probit models.09 41.5537 Unlike PROC LOGISTIC. PROC PROBIT does not have the UNITS statement to compute factor changes in the odds. Therefore.9830 0.5304 6.0001 0.2029 0.0001 <.0280 0. PROC QLIM DATA=masil. The QLIM Procedure Discrete Response Profile of trust Index 1 2 Value 0 1 Frequency 682 492 Percent 58.0049 0. Stata.9204 33.0085 <. MODEL trust = educate income age male www. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 18 Effect educate income age male www DF 1 1 1 1 1 Wald ChiSquare 33.0185 0.1433 Pr > ChiSq <.0454 0.gss_cdvm.0001 0. and sampleselected models.© 20032010. PROC QLIM DATA=masil.0376 0.1516 0.08 4.14 <.8789 5.1650 11.
028015 0. MODEL trust = educate income age male www /DIST=BINOMIAL LINK=LOGIT.030349 0.79 2.edu/~statmath 19 . Parameter Estimates Standard Error 0. RUN.0001 <.0001 0.6 0.97164 0.68 1596.LogL0) .((LogLK)/LogL0)^(2/N*LogL0) R / U (R * (U+N)) / (U * (R+N)) N = # of observations.478382 0. K = # of regressors Algorithm converged.983009 0.004871 0.125829 0.1714 0.exp(R/N) (1exp(R/N)) / (1exp(U/N)) 1 .0988 0.011536 0.0806 0. PROC GENMOD DATA = masil.75 2.04 3.gss_cdvm DESC.© 20032010.026178 0.0008 Parameter Intercept educate income age male www DF 1 1 1 1 1 1 Estimate 4. unlike other procedures.3489 Formula 2 * (LogL .1397 0.0000275 13 QuasiNewton 1480 1510 Endogenous Variable Number of Observations Log Likelihood Maximum Absolute Gradient Number of Iterations Optimization Method AIC Schwarz Criterion GoodnessofFit Measures Measure Likelihood Ratio (R) Upper Bound of R (U) AldrichNelson CraggUhler 1 CraggUhler 2 Estrella Adjusted Estrella McFadden's LRI VeallZimmermann McKelveyZavoina Value 128.553738 t Value 10. PROC GENMOD provides flexible methods to estimate generalized linear and nonlinear models.256796 0.63 5.42 5.0413 0.34 PROC QLIM produces various goodnessoffit measures and. Therefore.0085 <.0981 0. PROC QLIM is more comparable to Stata and LIMDEP than other alternative procedures in SAS.1).0001 0.165881 Approx Pr > t <. The DISTRIBUTION (DIST) and the LINK=LOGIT options respectively specify a probability distribution and a link function.indiana. reports t scores.2 * LogL0 R / (R+N) 1 .151581 0. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 19 trust 1174 733. which are the same as z score in Stata (see Section 2.1038 0. http://www.(1R/U)^(U/N) 1 .108 0.
0153 1510.0000 Wald 95% Confidence Limits 5. http://www.0077 0.0001 0.0000 4.9830 0.9716 1479.0115 0.0530 0.1258 0.4784 0.9206 0.92 33.1003 0.© 20032010.1659 0.9716 733.2286 1.0102 0.3523 Value/DF Algorithm converged.51 33.9433 1480.0049 0.8789 1.indiana.17 11.0413 0.53 6.0001 0.edu/~statmath 20 .0085 <.0262 0.0185 0.0303 0.GSS_CDVM Binomial Logit trust trust Number Number Number Number of of of of Observations Read Observations Used Events Trials 1174 1174 492 1174 Response Profile Ordered Value 1 2 Total Frequency 492 682 trust 1 0 PROC GENMOD is modeling the probability that trust='1'.2029 0.14 Parameter Intercept educate income age male www Scale DF 1 1 1 1 1 1 0 Estimate 4.0454 0.08 4.0001 <.2568 0.0280 0.5537 1. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 20 The GENMOD Procedure Model Information Data Set Distribution Link Function Dependent Variable MASIL.0008 NOTE: The scale parameter was held fixed. Analysis Of Maximum Likelihood Parameter Estimates Standard Error 0. Criteria For Assessing Goodness Of Fit Criterion Log Likelihood Full Log Likelihood AIC (smaller is better) AICC (smaller is better) BIC (smaller is better) DF Value 733.0000 Pr > ChiSq <.0376 0.5034 0.1516 0.0000 Wald ChiSquare 108.
030349 0. The following example reads a CSV file and saves into a data frame df.9987 0.5 Binary Logit Model in R In R. MODEL trust = educate income age male www /DIST=BINOMIAL. The glm() returns associated statistics and functions in an object blm. This function returns associated statistics and functions such as coef() and vcov() in an object.165881 3.1494 Max 2. codes: 0 ‘***’ 0.'. a dependent variable is followed by a tilde (~) and a list of independent variables separated by a plus (+) sign.edu/~statmath/stat/all/cdvm/gss_cdvm.01 ‘*’ 0. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 21 Instead of the LINK=LOGIT option.1516 Coefficients: Estimate Std.’ 0.indiana.9 on 1173 on 1168 degrees of freedom degrees of freedom http://www. family=binomial(link="logit")) > summary(blm) Call: glm(formula = trust ~ educate + income + age + male + www. R does not give you all answers with a single function. > df<read. you may provide a corresponding link function manually using the FWDLINK and INVLINK statements.gss_cdvm DESC.© 20032010. you need to get specific answers using statistics and functions that glm() returns.008522 ** age 0.8263 0.table('http://www.028015 0. data=df.csv'. (output is skipped) 2.6 Residual deviance: 1467.indiana.001 ‘**’ 0. A delimiter is specified in sep=’’ and header=T reads variable names from the first row.02e09 *** income 0.338 0. + sep='.631 0. RUN. glm() fits binary logit and probit models.125829 2. The family= option specifies a link function.table().041267 * www 0.026177 5. data = df) Deviance Residuals: Min 1Q Median 1. PROC GENMOD DATA = masil.041 0. Accordingly.983009 0. family = binomial(link = "logit").151581 0.1 ‘ ’ 1 (Dispersion parameter for binomial family taken to be 1) Null deviance: 1596.05 ‘.011536 2.478359 10.553738 0.752 8. summary(blm) reports the summary of the estimated binary logit model. header=T) > attach(df) In the glm() below. FWDLINK link=LOG(_MEAN_/(1_MEAN_)).417 < 2e16 *** educate 0.791 7. Unlike Stata and SAS.000843 *** Signif. Let us read a data set first using read.004871 5.6752 3Q 1.83e09 *** male 0.256796 0. > blm<glm(trust~educate+income+age+male+www.edu/~statmath 21 . The attach() function adds the data frame to R search path so that variables in the data frame are accessed by their names alone (without their data frame name). Error z value Pr(>z) (Intercept) 4. The following is an example. INVLINK invlink=1/(1+EXP(1*_XBETA_)).
© 20032010, The Trustees of Indiana University
Regression Models for Binary Dependent Variables: 22
AIC: 1479.9 Number of Fisher Scoring iterations: 4
R reports the same parameter estimates, standard errors, and z scores that Stata produced. R does not, however, display goodnessoffit measures except for AIC and, like SAS PROC LOGISTIC, returns 2*log likelihood of null and full models (see Section 2.3) instead. For instance, 1,467.9 of Residual deviance: is 2*log likelihood of the full model. df.null (=1,173) and df.residual (=1,168) are degrees of freedom of null and full models, respectively. Therefore, the likelihood ratio and its pvalue are computed as,
> blm$deviance/2 [1] 733.9716 > AIC(blm) [1] 1479.943 > LRtest<blm$null.deviance  blm$deviance > LRtest [1] 128.6811 > dchisq(LRtest, blm$df.null  blm$df.residual) [1] 2.214737e26
The likelihood ratio is 128.6811, which is large enough to reject the null hypothesis of poor fit (no difference between null and full models). McFadden‟s pseudo R2 is computed on the basis of the two deviances (log likelihoods of null and full models): .0806=1(1467.9/1596.6). Notice that a comment begins with the pound sign (#).
> 1bpm$deviance/bpm$null.deviance # McFadden's pseudo R square [1] 0.08056336
Now, let us compute factor changes in the odds of having success. Create vectors of means and standard deviations of covariates using c(), mean(), and sd(). Notice that 1 is for the intercept. bHat and K are a vector of parameter estimates and a scalar for the length of bHat (number of parameters).
> > > > meanX<c(1, mean(educate), mean(income), mean(age), mean(male), mean(www)) sdX<c(1, sd(educate), sd(income), sd(age), sd(male), sd(www)) bHat<coef(blm) # vector of parameter estimates K<length(bHat) # the number of parameters
Next, compute factor changes of the odds. The following cbind() combines individual vectors into a matrix. Exp(bHat*sdX) is factor changes when covariates increase by their standard deviations. colnames(fcOdds) puts column names to the data frame fcOdds.
> fcOdds<cbind(bHat, exp(bHat), exp(bHat*sdX), meanX, sdX) > fcOdds<fcOdds[2:K,] > colnames(fcOdds)<c("b", "e^b", "e^(b*sd)", "Mean of X", "SD of X")
The following output is very similar to what .listcoef produced in Section 2.2.
> fcOdds b exp(b) exp(b*sd) Mean of X SD of X educate 0.15158121 1.163673 1.476272 14.2427598 2.5697123 income 0.03034856 1.030814 1.206818 24.6486371 6.1942699 age 0.02801520 1.028411 1.455869 41.3074957 13.4071272
http://www.indiana.edu/~statmath
22
© 20032010, The Trustees of Indiana University
Regression Models for Binary Dependent Variables: 23
male www
0.25679598 1.292781 0.55373840 1.739745
1.136353 1.255396
0.4505963 0.7853492
0.4977653 0.4107548
Finally, compute marginal effects at the same reference points. %*% below obtains the element by element product, a scalar of xb in this case. The scalar prob contains the predicted probability of 47.53 percent that female WWW users with 16 years of education (educate=16, male=0, and www=1) trust most people, holding other covariates at their means.
> referX<c(1, 16, mean(income), mean(age), 0, 1) # set reference points > xb<bHat %*% referX # element by element product > prob<exp(xb)/(1+exp(xb)) # compute a pridicted probability > prob [,1] [1,] 0.4753492
Marginal effects are ( x )(1 ( x )c in the binary logit model. When covariates increase by their standard deviations from the reference points, the marginal effects are prob*(1prob)*bHat*sdX. Compare the following result with what .prchange computed in Section 2.2 and the PROC IML output in Section 2.3. Notice that .0640 and .1381 below are not discrete changes of gender and WWW use. See Section 3.4 for computing discrete changes.
> > > > margEffect<cbind(bHat, prob*(1prob)*bHat, prob*(1prob)*bHat*sdX, meanX,sdX) margEffect<margEffect[2:K,] colnames(margEffect)<c("b", "MargEffect", "MargEffect(SD)", "Mean of X", "SD of X") margEffect b 0.15158121 0.03034856 0.02801520 0.25679598 0.55373840 MargEffect MargEffect(SD) Mean of X SD of X 0.037803193 0.09714333 14.2427598 2.5697123 0.007568699 0.04688256 24.6486371 6.1942699 0.006986775 0.09367259 41.3074957 13.4071272 0.064042951 0.03187836 0.4505963 0.4977653 0.138098116 0.05672447 0.7853492 0.4107548
educate income age male www
2.6 Binary Logit Model in LIMDEP (Logit$) LIMDEP can read data in the ASCII text (CSV) and Excel format. The following script clears the worksheet (RESET$), defines data size (ROWS;999999$), and then reads an Excel file gss_cdvm.xls. Notice that each command ends with $ and subcommands are separated by a semicolon.
RESET$ ROWS;999999$ READ;FILE="C:\Temp\Limdep\gss_cdvm.xls"$
The Logit$ command estimates various logit models in LIMDEP. A dependent variable is specified in the Lhs= (lefthand side) subcommand and a list of independent variables in the Rhs= (righthand side). You have to explicitly specify ONE for the intercept.
LOGIT;Lhs=TRUST; Rhs=ONE,EDUCATE,INCOME,AGE,MALE,WWW$ Normal exit from iterations. Exit status=0. ++  Binary Logit Model for Binary Choice   Maximum Likelihood Estimates 
http://www.indiana.edu/~statmath
23
© 20032010, The Trustees of Indiana University
Regression Models for Binary Dependent Variables: 24
 Model estimated: Sep 09, 2009 at 04:25:56PM.  Dependent variable TRUST   Weighting variable None   Number of observations 1174   Iterations completed 5   Log likelihood function 733.9716   Number of parameters 6   Info. Criterion: AIC = 1.26060   Finite Sample: AIC = 1.26066   Info. Criterion: BIC = 1.28650   Info. Criterion:HQIC = 1.27037   Restricted log likelihood 798.3122   McFadden Pseudo Rsquared .0805957   Chi squared 128.6811   Degrees of freedom 5   Prob[ChiSqd > value] = .0000000   HosmerLemeshow chisquared = 3.64573   Pvalue= .88759 with deg.fr. = 8  ++ +++++++ Variable Coefficient  Standard Error b/St.Er.P[Z>z] Mean of X +++++++ +Characteristics in numerator of Prob[Y = 1] Constant 4.98300913 .47835906 10.417 .0000 EDUCATE  .15158121 .02617738 5.791 .0000 14.2427598 INCOME  .03034856 .01153642 2.631 .0085 24.6486371 AGE  .02801520 .00487072 5.752 .0000 41.3074957 MALE  .25679598 .12582872 2.041 .0413 .45059625 WWW  .55373840 .16588151 3.338 .0008 .78534923 ++  Information Statistics for Discrete Choice Model.   M=Model MC=Constants Only M0=No Model   Criterion F (log L) 733.97164 798.31217 813.75479   LR Statistic vs. MC 128.68107 .00000 .00000   Degrees of Freedom 5.00000 .00000 .00000   Prob. Value for LR .00000 .00000 .00000   Entropy for probs. 733.97164 798.31217 813.75479   Normalized Entropy .90196 .98102 1.00000   Entropy Ratio Stat. 159.56630 30.88523 .00000   Bayes Info Criterion 1.28048 1.39009 1.41640   BIC(no model)  BIC .13592 .02631 .00000   Pseudo Rsquared .08060 .00000 .00000   Pct. Correct Pred. 65.41738 .00000 50.00000   Means: y=0 y=1 y=2 y=3 y=4 y=5 y=6 y>=7   Outcome .5809 .4191 .0000 .0000 .0000 .0000 .0000 .0000   Pred.Pr .5809 .4191 .0000 .0000 .0000 .0000 .0000 .0000   Notes: Entropy computed as Sum(i)Sum(j)Pfit(i,j)*logPfit(i,j).   Normalized entropy is computed against M0.   Entropy ratio statistic is computed against M0.   BIC = 2*criterion  log(N)*degrees of freedom.   If the model has only constants or if it has no constants,   the statistics reported here are not useable.  ++ ++  Fit Measures for Binomial Choice Model   Logit model for variable TRUST  ++  Proportions P0= .580920 P1= .419080   N = 1174 N0= 682 N1= 492   LogL= 733.972 LogL0= 798.312   Estrella = 1(L/L0)^(2L0/n) = .10799  ++  Efron  McFadden  Ben./Lerman   .10474  .08060  .56407   Cramer  Veall/Zim.  Rsqrd_ML   .10469  .17142  .10382  ++  Information Akaike I.C. Schwarz I.C.   Criteria 1.26060 1.28650  ++
http://www.indiana.edu/~statmath
24
INCOME. WWW  . The following script computes marginal effects at the mean values of independent variables.03664   INCOME  .00117650 5.252% False pos. Rhs=ONE.174).0004 . SAS.943/1. and LIMDEP produce the same result.12861867 . for predicted neg.479.0000 1.24698361 ++  Marginal Effects for +++  Variable  All Obs.AGE.68395424 +Marginal effect for dummy variable is P1 .3%) 682 ( 58.2606 (=1. add the Marginal Effects and Means subcommands to Logit$. = predicted 1s actual 0s 38. While SAS reports AIC*N=1.351=1.250% Correct prediction = actual 1s and 0s correctly predicted 65. column or row total percentages may not sum to  100% because of rounding.042 .00734  http://www.9433. MALE  .EDUCATE.636 .27598047 INCOME  .P[Z>z]Elasticity +++++++ +Marginal effect for variable in probability Constant 1.750% False predictions = actual 1s and 0s incorrectly predicted 34.03653176 3.9%) 1174 (100.0%) +++++ ======================================================================= Analysis of Binary Choice Model Predictions Based on Threshold = .00677169 .793 . for true neg.P0.44211529 AGE  . The likelihood ratio is 128. for predicted pos.114% False neg.9%) +++++ Total  800 ( 68.748% Specificity = actual 0s correctly predicted 78.Er.© 20032010. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 25 ++ Predictions for Binary Choice Model. ++++ Actual Predicted Value   Value  0 1  Total Actual  +++++  0  538 ( 45. = actual 0s predicted as 1s 21.6811=2*[(798. for true pos.497% Negative predictive value = predicted 0s that were actual 0s 67.500000.5000 Prediction Success Sensitivity = actual 1s correctly predicted 46. Predicted value is  1 when probability is greater than . Marginal Effects.3122)(733. = actual 1s predicted as 0s 53.503% False neg.6%) 492 ( 41.Lhs=TRUST.0000 .1%) 374 ( 31. In order to compute marginal effects.edu/~statmath 25 .20446697 .P0.886% Positive predictive value = predicted 1s that were actual 1s 61.479.0000 EDUCATE  . BIC (Schwarz IC) is 1510.9716)].0084 . = predicted 0s actual 1s 32. 0 otherwise.521 .  +++  ONE  1.00278319 2. Percentages are of full sample. Note.0412 . Means$ +++++++ Variable Coefficient  Standard Error b/St.8%) 144 ( 12.2865*1174.03663942 .417% Prediction Failure False pos.03043408 2.756 .WWW.06213506 . Other parts in the output are skipped.00632491 5.06845822 +Marginal effect for dummy variable is P1 .indiana.MALE.1%)  1  262 ( 22.3%) 230 ( 19.00733570 .657 .11302276 10.20447   EDUCATE  . LOGIT. LIMDEP returns an AIC of 1.583% ======================================================================= Stata.
.5910 0>1 0.0621 0. quietly before a command run the command but suppresses the output.1286 +1/2 0.6486 6.0366 0.0366 0.05) POUT(0.1805 0.785349 .0621 0.g.410755 educate 14.0073 0.0454 0. Stata and LIMDEP produce the same marginal effects (e.0549 MargEfct 0.56971 2. the Logistic Regression command fits the binary logit model.450596 .0905 0. which are often overwhelming for beginners.001.00677   MALE  .0057 0.0621 0. Estimation terminated at iteration number 4 because parameter estimates changed by less than .104 .5).943 a Nagelkerke R Square Square .1286 for WWW use).06214   WWW  . .© 20032010.5259 0.12862  +++ In order to compare marginal effects computed in Stata and LIMDEP. Variables in the Equation B S. Model Summary Cox & Snell R Step 1 2 Log likelihood 1467.2428 2.4428 0.2).1331 +sd/2 0.497765 www . Wald Df Sig.0068 0. quietly logit trust educate income age male www . let us run .19427 age 41.0041 0.g.E.0309 0.0939 0.prchange in Stata without reference points specified.0068 0. prchange logit: Changes in Probabilities for trust educate income age male www Pr(yx) x= sd_x= min>max 0.0111 0. The tables below are selected from the entire output. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 26  AGE  .edu/~statmath 26 .0366 for education) and discrete changes (e.140 a. LOGISTIC REGRESSION VARIABLES trust /METHOD=ENTER educate income age male www /CRITERIA=PIN(0..10) ITERATE(20) CUT(0.3075 13. Exp(B) http://www.0620 0.4071 male . Notice that marginal effects and discrete changes vary depending on reference points used (compare with marginal effects in Section 2.0073 0.4090 income 24. SPSS generates messy tables.1286 0 0.indiana.7 Binary Logit Model in SPSS In SPSS..1338 1 0. .
9716 128. and BIC.257 .9830 (. Schwarz. age.2568 (.1516 (.2568 (.0115) .943 z LIMDEP Logit$ .0262) .0115) .9830 (.530 6. www.0049) .0806 1480.007 a.0806 1479.0049) .0262) . and PROBIT procedures conduct chisquare tests.9830 (.009 .5537 (.0280 (.4784) 733.352 Chisquare SAS QLIM .0806 1479.0303 (.478 33.1258) .1258) .logit with SPost are general recommended. male.0303 (.001 .031 1.1659) 4.4784) 733.3523 BIC (Schwarz) Chisquare H0 test * PROC LOGISTIC and R report (2*Loglikelihood).0115) .164 1.0049) . SPSS reports 2*Loglikelihood (1.9830 (.2568 (.1516 (.1516 (. t GENMOD .005 .1258) .1659) 4. Parameter Estimates and Goodnessoffit of the Binary Logit Model LOGISTIC Education Family income Age Gender (male) WWW use Intercept . SPSS does not produce Pseudo R2.000 .983 .6811 .1258) .68 .740 .1659) 4.0049) .0115) .000 .041 . R. SAS.5537 (. Table 2.2568 (.9716 Stata .0806 1479. 1510.edu/~statmath 27 . Like SAS PROC LOGISTIC.1 summarizes parameter estimates and goodnessoffit measures of the binary logit model produced in Stata. excluding the output of PROC PROBIT and SPSS. SPSS returns the same parameter estimates and their standard errors.5537 (.943=2*733. Pvalues are listed under the label Sig.0262) .9433 AIC 1510.9716 128.352 z Log likelihood Likelihood test Pseudo R2 1479.126 .511 1 1 1 1 1 1 .012 .1516 (.1659) 4.indiana. GENMOD.026 .0280 (. PROC LOGISTIC and Stata .0049) .0303 (.1516 (.1258) .152 .0115) . and goodnessoffit measures are identical except for some rounding errors.030 .028 1. and LIMDEP report z scores for hypothesis test. AIC.0280 (.5537 (.352 z R glm() . The Trustees of Indiana University Regression Models for Binary Dependent Variables: 27 Step 1 a educate income age male www Constant .© 20032010.467. R.1659) 4. Variable(s) entered on step 1: educate.0303 (.6811 .4784) 733. Table 2. Parameter estimates.2568 (.logit .1.0280 (.0303 (.0303 (.0115) .5537 (.9830 (.1258) .4784) 733.943 1510.9716 128.5537 (.943 1510.0806 1479.4784) 733.0049) .554 4. and factor changes in odds under Exp(B).143 108. and LIMDEP.6811 .1659) 4.000 1. their standard errors. while PROC QLIM returns t scores and LOGISTIC.0262) .0262) .0280 (.166 .9716) and Wald statistics. income.4784) 733.165 11.1516 (.0262) .028 . ** AIC*N and BIC*N in Stata and LIMDEP http://www.293 1.2568 (.944 1510.9716 128.920 33.0280 (.9830 (.083 4. Stata.68 .9716 128.
7*. the coefficient of education in the binary logit model is .edu/~statmath 28 . 3.88 0.© 20032010. See Cameron and Trivedi (2009: 451452) for discussion on parameter estimates across models (OLS.0087077 . respectively.000 3. .038 . The logit and probit models produce almost similar goodnessoffit measures but their parameter estimates differ.probit) Stata .88 0.0000 0.0230916 male  . probit trust educate income age male www Iteration Iteration Iteration Iteration 0: 1: 2: 3: log log log log likelihood likelihood likelihood likelihood = = = = 798.483995  The standard normal probability distribution and standard logistic distribution respectively have a unit variance and a variance of 2 3 .15422519 Goodnessoffit measures are very similar to those of the logit model. Therefore. Long‟s suggestion is 1.63 0.1542 (1.3417645 .0185906 .07 0. z P>z [95% Conf.7 (Long 1997: 48).030053 .0907207 .87 0.1516.99746 733. which is similar to .indiana.007 . The Trustees of Indiana University Regression Models for Binary Dependent Variables: 28 3. For instance.629 in binary logit and probit models.0768819 2. Let us fit the binary probit model to see if there is substantial difference between binary logit and probit models.1593935 . Log likelihoods are 733.0173105 .0907207 .probit. .8138 ( 3 ) larger than its corresponding coefficient in its probit counterpart. binary logit.16454915 . Err.576111 2. Std. and binary probit model).3100793 www  .2786062 10.972 and 733.001 .7*.0051293 . .681 and 128.44 0.99746 Number of obs LR chi2(5) Prob > chi2 Pseudo R2 = = = = 1174 128. fitstat Measures of Fit for probit of trust http://www. Binary Probit Regression Model The probit model is represented as Prob( y 1  x) ( x ) . a parameter estimate in a binary logit model is about 1.0806 Probit regression Log likelihood = 733.31217 734.1209725 income  .logit and .5362235 _cons  3.0068681 2.0992156 3. They produce the same pseudo R2 of . Interval] +educate  .0604689 .1 Binary Probit Model in Stata (. di 1. where Φ indicates the cumulative standard normal probability distribution function.71 0.1473055 .probit estimates the binary probit regression model.0154349 5.0320519 age  .0029496 5.000 .0907207 .10951 733.997 and likelihood ratios are 128.000 .0907). di _pi/sqrt(3)*.0806.99746 trust  Coef.0115293 . If you want to get robust standard errors. add the robust option to .
0907*2. For example.2119 13.171 1479.995 0.0793 0.2331 (=. run SPost‟s .289 1479. Notice that factor changes in odds by definition are not available in a probit model.2331 0.1051 6.404 LogLik Full Model: LR(5): Prob > LR: McFadden's Adj R2: CraggUhler(Nagelkerke) R2: Efron's R2: Variance of error: Adj Count R2: AIC*n: BIC': AIC used by Stata: 733.007 0.629 0.1455 0.listcoef command. Marginal effects and discrete changes in the logit and probit models.166 1.261 6787. at(mean educate=16 male=0 www=1) Marginal effects after probit http://www.34176 3.4978 www  0.312 1467.4753 versus .652 1.3121 0. .1943 age  0.073 0.09072 5.000 0.indiana.5697).© 20032010.000 0.878 0. A coefficient is the impact of an independent variable for a unit increase in that variable. You may compute marginal effects and discrete changes using either . .4108 b = raw coefficient z = zscore for test of b=0 P>z = pvalue for ztest bStdX = xstandardized coefficient bStdY = ystandardized coefficient bStdXY = fully standardized coefficient SDofX = standard deviation of X The discrete change of a binary variable remains unchanged in the binary probit model. while the corresponding number under bStdX is the impact of the covariate for a standard deviation increase in that variable. P( y 1  x) ( x ) c xc where denotes the standard normal probability density function.0170 0.0952088 trust  b z P>z bStdX bStdY bStdXY SDofX +educate  0.prchange.0378 versus .4071 male  0.0828 0.0724 0. listcoef. but the marginal effect of a continuous independent variable in the binary probit model is defined as.073 0. the xstandardized coefficient of education is .01859 2.5697 income  0.15939 2.081 0.001 0. are very similar (. help probit (N=1174): Unstandardized and Standardized Estimates Observed SD: .1320 for WWW use).49361879 Latent SD: 1.2321 0. despite different parameter estimates.630 1510.2129 2.1152 0.1282 0.869 0.995 In order to get standardized estimates.edu/~statmath 29 .0361 for education and .140 0.0158 0.mfx or SPost‟s .000 0.1329 versus . Also two models return the similar predicted probability at the same reference points (.1404 0.199 0.997 128.105 1.01731 5.4747).038 0. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 29 LogLik Intercept Only: D(1168): McFadden's R2: ML (CoxSnell) R2: McKelvey & Zavoina's R2: Variance of y*: Count R2: AIC: BIC: BIC used by Stata: 798.707 0.104 0.445 0. mfx.000 0.995 93.
. .4071 male 0 . x(educate=16 male=0 www=1) rest(mean) probit: Predicted probabilities of positive outcome for trust  WWW Use Gender  Nonusers Users +Female  0. z P>z [ 95% C.4747 income 24.0458 0.307496 male 0 www 1 .1320 +1/2 0.0634 0. .edu/~statmath 30 .000 .0316 0.0051 0.00118 5.1916 0.497765 www 1 .prtab and .022774 .00921 41.5265 0. prtab male www.038 .5253 income 24.3075 male* . quietly probit trust educate income age male www http://www.© 20032010.1320435 . 0.5213] [ 0.6486 age  . prvalue.005 .0074 0.205339 1 (*) dy/dx is for discrete change of dummy variable from 0 to 1 .53 0.2.000 .5719] male 0 www 1 age 41.049465 16 income  . Compare the following result with the output presented in Section 2.648637 95% Conf.5382 x= educate 16 income 24.3427 0. 0.0361 0.08 0.004574 .0074 0.0361195 .0374 3.0926 0. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 30 = Pr(trust) (predict) = .81 0.indiana. Err.1320 0 0.83 0.1354 +sd/2 0.000 . Interval [ 0.4747 0.058748 .123453 0 www* .prvalue report same predicted probabilities at the same reference points.56971 Similarly.00681 5. x(educate=16 male=0 www=1) rest(mean) probit: Changes in Probabilities for trust educate income age male www Pr(yx) x= sd_x= min>max 0.prgen.003573 .3075 13.19427 age 41.6486 6.0361 0.006892 .0074017 .002234 .I. We are using the same reference points and same range of education (0 to 20) to get Figure 3. x(educate=16 male=0 www=1) rest(mean) probit: Predictions for trust Confidence intervals by delta method Pr(y=1x): Pr(y=0x): x= educate 16 0.012569 24. See Appendix for the Stata script used.0069 0.0635 0.0069 0.0065 0.0558 MargEfct 0.410755 educate 16 2.0635132 .1.4747 Male  0.5253 0>1 0.4409 0.307496 Finally.0123 0. prchange.648637 age 41.0635 0.0635 0.47469509 variable  dy/dx Std. ] X +educate  .03058 2.4029 0.4281.30 0.0922 0.1361 y 1 0.00264 2. let us draw a plot of predicted probabilities using .4787.
648637 age 41. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 31 . x= educate 14. from(0) to(20) ncases(20) x(male=0 www=0) rest(mean) gen(Probit_age00) probit: Predicted values as educate varies from 0 to 20.307496 male 0 www 0 Compare Figure 2.24276 income 24. Figure 3.307496 male 1 www 1 . x= educate 14.307496 male 1 www 0 .edu/~statmath 31 .648637 age 41.8 3 5 7 9 11 13 15 17 19 1 3 5 7 9 11 13 15 17 19 Education (Years) Men Graphs by bygroup Women http://www. from(0) to(20) ncases(20) x(male=0 www=1) rest(mean) gen(Probit_age01) probit: Predicted values as educate varies from 0 to 20. although two models produce different parameter estimates and standard errors.indiana.24276 income 24. x= educate 14. from(0) to(20) ncases(20) x(male=1 www=1) rest(mean) gen(Probit_age11) probit: Predicted values as educate varies from 0 to 20.4 . prgen educate. from(0) to(20) ncases(20) x(male=1 www=0) rest(mean) gen(Probit_age10) probit: Predicted values as educate varies from 0 to 20. This finding is not surprising at all because predicted probabilities.24276 income 24. x= educate 14. marginal effects.648637 age 41.1 and 3. prgen educate. and discrete changes are very similar in binary logit and probit models.6 .648637 age 41.24276 income 24.1 Predicted Probabilities of Trusting Most People (Binary Probit Model) WWW Nonusers 1 WWW Users 0 1 .2 .307496 male 0 www 1 .1 to find they are almost identical.© 20032010. prgen educate. prgen educate.
0001 0.3266 34.0382 http://www. MODEL trust = educate income age male www.4417 4. PROC PROBIT DATA = masil.edu/~statmath 32 .© 20032010. RUN.2 Binary Probit Model in SAS: PROC PROBIT and PROC LOGISTIC PROBIT and LOGISTIC procedures estimate the binary probit model.9974633 trust Number of Observations Read Number of Observations Used 1174 1174 Class Level Information Name trust Levels 2 Values 0 1 Response Profile Ordered Value 1 2 Total Frequency 682 492 trust 0 1 PROC PROBIT is modeling the probabilities of levels of trust having LOWER Ordered Values in the response profile table.indiana. Keep in mind that the coefficients of PROC PROBIT have opposite signs. Algorithm converged. Type III Analysis of Effects Wald ChiSquare 34.gss_cdvm. Stata and SAS produce the same result.5467 7.GSS_CDVM trust 1174 Normal 733.0068 <.0001 0. The Probit Procedure Model Information Data Set Dependent Variable Number of Observations Name of Distribution Log Likelihood MASIL. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 32 3.2983 Effect educate income age male DF 1 1 1 1 Pr > ChiSq <.
0068 <. RUN.30 11.3101 0.0231 0.1473 ChiSquare Pr > ChiSq 118. Model Fit Statistics http://www. PROC LOGISTIC DATA = masil.0605 0.8657 0.0382 0.2786 0.0154 0.0001 0.624).bpm. Model Convergence Status Convergence criterion (GCONV=1E8) satisfied.5761 0.0006 Analysis of Maximum Likelihood Parameter Estimates Standard Error 0.bpm.33 34.87 <. McFadden‟s pseudo R2 is . The LOGISTIC Procedure Model Information Data Set Response Variable Number of Response Levels Model Optimization Technique MASIL.0069 0.0115 0.28 34.0029 0.44 4.gss_cdvm DESC OUTEST=masil.0173 0.4840 0.0006 Parameter Intercept educate income age male www DF Estimate 1 1 1 1 1 1 3.0186 0.995/1596.GSS_CDVM trust 2 binary probit Fisher's scoring trust Number of Observations Read Number of Observations Used 1174 1174 Response Profile Ordered Value 1 2 Total Frequency 492 682 trust 1 0 Probability modeled is trust=1. OUTEST stores parameter estimates into a SAS data set masil.0300 0.0051 0. which will be used when computing marginal effects later. The Trustees of Indiana University www 1 Regression Models for Binary Dependent Variables: 33 11.55 7.0806=1(.edu/~statmath 33 .3418 PROC LOGISTIC requires a normal probability distribution as a link function (/LINK=PROBIT or /LINK=NORMIT) to fit a binary probit model.© 20032010.5362 3.0769 0.0001 0.1210 0. MODEL trust = educate income age male www /LINK=PROBIT.0992 95% Confidence Limits 2.indiana.1594 0.0321 0.1467.0907 0.0001 <.0087 0.
5344 118.0006 Association of Predicted Probabilities and Observed Responses Percent Concordant Percent Discordant Percent Tied Pairs 68.© 20032010.3418 Pr > ChiSq <.2796 0.0064 <. The following script fits the same model using /LINK=NORMIT and stores the SAS output in an HTML file c:\temp\sas\logit..indiana.624 1603. The following SAS script highlights the only parts different from the PROC IML in Section 2.4 31.7914 Parameter Intercept educate income age male www DF 1 1 1 1 1 1 Estimate 3.181 0.g.4 335544 Somers' D Gamma Taua c 0.gss_cdvm DESC.html'.bpm.edu/~statmath 34 . .00295 0.624 Intercept and Covariates 1479.00682 0.0995 Wald ChiSquare 117.0001 0.0158 versus .0158 0.0001 0. ODS HTML FILE='c:\temp\sas\probit. http://www. MODEL trust(EVENT='1') = educate income age male www /LINK=NORMIT.372 0.4048 32.3163 4.2979 11.0382 0.995 1510. We stored parameter estimates in masil.0001 <.0907 0.0001 Analysis of Maximum Likelihood Estimates Standard Error 0.0001 <. RUN. PROC LOGISTIC DATA = masil.0769 0.6294 121. ODS HTML CLOSE. Let us compute marginal effects using SAS/IML.3.0173 0. but PROC LOGISTIC reports slightly different standard errors (e.4273 34.0186 0. PROBNORM()=CDF(„NORMAL‟) and PDF(„NORMAL‟) are respectively CDF and PDF of the standard normal distribution. and PROC PROBIT share the same parameter estimates.404 1467.html using ODS.2980 DF 5 5 5 Pr > ChiSq <.0298 0.693 1596.0001 <.3 0. PROC LOGISTIC.371 0. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 34 Criterion AIC SC 2 Log L Intercept Only 1598.0154 for education).1594 0.686 Stata.9144 7.995 Testing Global Null Hypothesis: BETA=0 Test Likelihood Ratio Score Wald ChiSquare 128.
0907156 0.. 1) * T(bHat # sdX). K=NCOL(bHat). /* get the number of regressors */ .. /* terminate PROC IML */ The predicted probability that female Internet users will trust people is 47.edu/~statmath 35 .0634594 0. /* compute a predicted probability */ .© 20032010.648637 41. margin = PDF('NORMAL'. QUIT. /* compute marginal effects */ marginSD = PDF('NORMAL'. referX 1 16 24.4746975 result b MargEffect MargEffect(SD) Mean of X educate income age male www 0. RUN.7853492 SD of X 2.0361175 0. Compared to PROC LOGISTIC. prob = PROBNORM(xb).3417757 0..bpm. MODEL trust = educate income age male www /DISCRETE (DIST=NORMAL).5697123 6.1. The DIST=NORMAL option below indicates the normal probability distribution to be used in estimation.. xb.0073994 0.0923958 0. 0. 1) * T(bHat).91 Model Fit Summary http://www.gss_cdvm. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 35 PROC IML. PROC QLIM DATA=masil.4505963 0.0458338 0. /* get a row vector of parameter estimates */ READ ALL VAR{Intercept educate income age male www} INTO bHat.407127 0.0068915 0. xb. Calculated marginal effects are the same as what .4977653 0.1360745 0.prchange returned in Section 3.0558932 14.1593898 0.indiana.0173094 0.0315879 0.09 41. PROC QLIM reports same parameter estimates and goodnessoffit statistics but slightly different standard errors. . holding other covariates at their means.47 percent.4107548 3.307496 0 prob 1 0.1942699 13. The QLIM Procedure Discrete Response Profile of trust Index 1 2 Value 0 1 Frequency 682 492 Percent 58. USE masil. 0..3 Binary Probit Model in SAS: PROC QLIM and PROC GENMOD PROC QLIM provides various goodnessoffit statistics..648637 41.0185849 0.307496 0.0928116 0.24276 24.
278616 0.099215 Approx Pr > t <.44 PROC GENMOD estimates the binary probit model using the /DIST=BINOMIAL and /LINK=PROBIT options in the MODEL statement.006868 0.indiana.0001 0.88 2.edu/~statmath 36 . Again.018591 0.((LogLK)/LogL0)^(2/N*LogL0) R / U (R * (U+N)) / (U * (R+N)) N = # of observations.1714 0.63 1596. K = # of regressors Algorithm converged.015435 0.1038 0. and goodnessoffit measures. Parameter Estimates Standard Error 0.71 5.07 3.(1R/U)^(U/N) 1 .341764 t Value 10.1396 0. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 36 Number of Endogenous Variables Endogenous Variable Number of Observations Log Likelihood Maximum Absolute Gradient Number of Iterations Optimization Method AIC Schwarz Criterion 1 trust 1174 733.0068 <.098 0.076882 0.0001 <. PROC QLIM and PROC GENMOD return the same parameter estimates. PROC GENMOD DATA = masil.090721 0.0001 0.0987 0. DESC uses a larger value as a positive event (success).88 5.87 2.0382 0.00200 11 QuasiNewton 1480 1510 GoodnessofFit Measures Measure Likelihood Ratio (R) Upper Bound of R (U) AldrichNelson CraggUhler 1 CraggUhler 2 Estrella Adjusted Estrella McFadden's LRI VeallZimmermann McKelveyZavoina Value 128. standard errors.2 * LogL0 R / (R+N) 1 .017310 0.1662 Formula 2 * (LogL .030053 0.LogL0) .1079 0.0806 0.exp(R/N) (1exp(R/N)) / (1exp(U/N)) 1 .159393 0. MODEL trust = educate income age male www /DIST=BINOMIAL LINK=PROBIT.0006 Parameter Intercept educate income age male www DF 1 1 1 1 1 1 Estimate 3.002950 0.6 0.© 20032010. The GENMOD Procedure Model Information http://www.99746 0. RUN.gss_cdvm DESC.
0051 0.GSS_CDVM Binomial Probit trust trust Number Number Number Number of of of of Observations Read Observations Used Events Trials 1174 1174 492 1174 Response Profile Ordered Value 1 2 Total Frequency 492 682 trust 1 0 PROC GENMOD is modeling the probability that trust='1'.0992 0.30 11.4040 Value/DF Algorithm converged.4840 0.33 34.5761 0.0154 0.0321 0.indiana.0000 Pr > ChiSq <.0000 2.0115 0.0029 0. http://www.0173 0.0301 0.3101 0.1210 0.0605 0.0669 1510.4 Binary Probit Model in R The glm() function fits the binary probit model with family=binomial(link="probit").5362 1.0231 0. Criteria For Assessing Goodness Of Fit Criterion Log Likelihood Full Log Likelihood AIC (smaller is better) AICC (smaller is better) BIC (smaller is better) DF Value 733.0769 0.0186 0.9975 733.0001 0.1594 0.28 34.9975 1479.© 20032010.44 4.0001 0.0907 0.55 7.0000 Wald ChiSquare 118.0382 0.87 Parameter Intercept educate income age male www Scale DF 1 1 1 1 1 1 0 Estimate 3.3418 1.edu/~statmath 37 .0001 <.0000 Wald 95% Confidence Limits 3. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 37 Data Set Distribution Link Function Dependent Variable MASIL. Analysis Of Maximum Likelihood Parameter Estimates Standard Error 0.2786 0.1473 1.9949 1480.0087 0. 3.0068 <.0069 0.0006 NOTE: The scale parameter was held fixed.
9975 > AIC(bpm) [1] 1479. which are slightly different from those of Stata.null . Let us conduct the likelihood ratio test using deviances of the null and full models. Error z value Pr(>z) (Intercept) 3.edu/~statmath 38 .1 ‘ ’ 1 (Dispersion parameter for binomial family taken to be 1) Null deviance: 1596. codes: 0 ‘***’ 0. 0.090719 0. > bHat<coef(bpm) # vector of parameter estimates > K<length(bHat) # the number of regressors > > > > referX<c(1. The pseudo R2 .995 > LRtest<bpm$null.0 AIC: 1480 on 1173 on 1168 degrees of freedom degrees of freedom Number of Fisher Scoring iterations: 4 Parameter estimates are the same across Stata. data = df) Deviance Residuals: Min 1Q Median 1.001 ‘**’ 0.076884 2.017311 0. family=binomial(link="probit")) > summary(bpm) Call: glm(formula = trust ~ educate + income + age + male + www.073 0.002955 5.279632 10.015812 5.1496 Max 2.6 Residual deviance: 1468.47 percent at the same reference points.01 ‘*’ 0.737 9. family = binomial(link = "probit").006410 ** age 0.214737e26 > 1bpm$deviance/bpm$null.deviance # McFadden's pseudo R square [1] 0.006820 2.000595 *** Signif.6756 3Q 1.159394 0.devianceblm$deviance > LRtest [1] 128. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 38 > bpm<glm(trust~educate+income+age+male+www.341768 0.1] http://www. mean(age).63e09 *** income 0.08056336 In order to get the predicted probability. use the same script except for the cumulative standard normal distribution function (CDF) pnorm().© 20032010. R and PROC LOGISTIC have the same standard errors. PROC GENMOD.726 0. mean(income). PROC QLIM. 16.0806 is also computed from the two deviances.bpm$df.0033 0. PROC LOGISTIC. data=df.018591 0.8299 1.’ 0.residual) [1] 2. bpm$df.05 ‘. and PROC QLIM.858 4.68e09 *** male 0.038157 * www 0. and PROC PROBIT.1831 Coefficients: Estimate Std.836 < 2e16 *** educate 0.030037 0. 1) xb<bHat %*% referX # element by element product prob<pnorm(xb) prob [.6811 > dchisq(LRtest.099532 3. > bpm$deviance/2 [1] 733.434 0. The predicted probability is 47.indiana.
01859065 0. Marginal Effects.6486371 6.2. PROBIT.09281515 14.indiana. use the standard normal probability density function (PDF) dnorm(). Criterion: BIC = 1.1 and PROC IML in Section 3.27041  Restricted log likelihood 798. 2009 at 11:41:52PM.0805634  Chi squared 128. Criterion:HQIC = 1.1]<1 xb0<bHat %*% referX0 xb1<bHat %*% referX1 dChange<pnorm(xb1)pnorm(xb0) margEffect[i. Do not forget to include the ONE for the intercept.2427598 2. dnorm(xb)*bHat*sdX.26070  Info. 3. "MargEffect(SD)".04584795 24.01731051 0.006891997 0. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 39 [1.132044777 0.4107548 Compare above marginal effects with the results of .036118888 0.1942699 age 0.9975  Number of parameters 6  Info. 6)) { # locations of binary variables referX0<matrix(referX) referX1<matrix(referX) referX0[i.7853492 0.prchange in Section 3. LIMDEP produces the same result as the other software packages.09071919 0.5697123 income 0.15939356 0. dnorm(xb)*bHat.3122  McFadden Pseudo Rsquared .1]<0 referX1[i.                    Binomial Probit Model  Maximum Likelihood Estimates  Model estimated: Sep 09.09240188 41.] 0.© 20032010.28655  Info.0000000  HosmerLemeshow chisquared = 4.WWW.007401671 0. Criterion: AIC = 1.edu/~statmath 39 .4977653 www 0. The following for() loop sets two reference points of 0 and 1 and computes the difference of the two predicted probabilities.26064  Finite Sample: AIC = 1. "Mean of X".5 Binary Probit Model in LIMDEP (Probit$) In LIMDEP.EDUCATE.4071272 male 0. Rhs=ONE. "SD of X") margEffect b MargEffect MargEffect(SD) Mean of X SD of X educate 0.Lhs=TRUST.6294  Degrees of freedom 5  Prob[ChiSqd > value] = . sdX) > + + + + + + + + + + + > > > > for (i in c(5. meanX. the Probit$ command estimates various probit models. Dependent variable TRUST  Weighting variable None  Number of observations 1174  Iterations completed 5  Log likelihood function 733.063513240 0. "MargEffect". Exit status=0.34176814 0.03158862 0.4746947 When calculating marginal effects in the binary probit model. Means$ Normal exit from iterations.INCOME.2]<dChange # replace the marginal effect with the discrete change } margEffect<margEffect[2:K.] colnames(margEffect)<c("b".AGE.3074957 13.05589197 0.4505963 0. > margin<cbind(bHat.81557  http://www.MALE.
0000 1.074 .125% Correct prediction = actual 1s and 0s correctly predicted 65.0000 INCOME  .9%) ++++) +++++ =======5000 Sensitivity = actual 1s correctly predicted 46.edu/~statmath 40 .67646354 +Marginal effect for dummy variable is P1 . 0 otherwise.2427598 24.0003 .10440  .753% ======================================================================= Compare marginal effects above with the following that .15939348 .  .230% Negative predictive value = predicted 0s that were actual 0s 67. Standard Error b/St.01543488 5.© 20032010. WWW  .0000 MALE  .01519985 38. Note.0067 . = actual 1s predicted as 0s 53. http://www.56389   Cramer  Veall/Zim.1%)  1  263 ( 22. MALE  . for predicted pos.4%) 229 ( 19.455% False pos.10378  ++  Criteria 1.   Observations used for means are All Obs.312   Estrella = 1(L/L0)^(2L0/n) = .10456  . = predicted 1s actual 0s 38.00686814 2. for true pos.07688194 2.45059625 . Percentages are of full sample.03005313 .06799567 +Marginal effect for dummy variable is P1 .0000 . +++ Value  0 1  Total Actual  ++++58.997 LogL0= 798.00723213 .08056  .01731045 .58627711 .03529223 .P[Z>z]Elasticity +++numerator of Prob[Y = 4] Constant .0000 EDUCATE  .0068 AGE  .770% False neg. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 40  Pvalue= .871 .01859061 .3074957 .707 .6486371 41.  Rsqrd_ML   .869 . = predicted 0s actual 1s 32. for true neg.00600827 5.34176450 .24616994 +odel   Probit model for variable TRUST  +0   N = 1174 N0= 682 N1= 492   LogL= 733. column or row total percentages may not sum to  100% because of rounding.261% False neg.545% Specificity = actual 0s correctly predicted 78.P0.874 .P[Z>z] ++ndex function for probability Constant 3.0381 . = actual 0s predicted as 1s 21.00294962 5.26064 1.12889554 – .10795  +.878 .02991770 2.03589934 3.43350460 AGE  .Er.875% False predictions = actual 1s and 0s incorrectly predicted 34.571 .445 .00673413 .77709 with deg.prchange computed at the means of all independent variables.06205251 – . = 8  +iable Coefficient  Standard Error b/St.Er.P0.28655  ++ +ed value is  1 when probability is greater than .22238383 INCOME  .0382 WWW  .5%) 492 ( 41.00266928 2.09921561 3.500000.739% Positive predictive value = predicted 1s that were actual 1s 61.27860620 10.0000 EDUCATE  .78534923 +ves of E[y] = F[*] with   respect to the vector of characteristics.  +.17135  .fr.00114709 5. for predicted neg.073 .   They are computed at the means of the Xs.709 .247% Prediction Failure False pos.876 .indiana.09072070 .590 .0006 Mean of X 14.
indiana.019 .56971 3.5888 0>1 0.19427 age 41. If you want to use GUI menu (pointandclick). SPSS and R produce the same parameter estimates and goodnessoffit measures.4435 0.0045 0.497765 www .876 Sig.159 .279 Z 5. The following tables are selected from messy SPSS output.030 Std.edu/~statmath 41 . include n in Total Observed: and independent variables in Covariate(s) of a dialog box Probit Analysis.0067 0.0905 0.012 .g.000 .0621 0.1289 0 0.023 .017 .445 10.0901 0.0072 0.751 a.869 2.0309 0.442 Pearson GoodnessofFit Test 1174.3075 13.2428 2.0546 MargEfct 0.450596 .785349 .147 3.536 2. PROBIT trust OF n WITH educate income age male www /LOG NONE /MODEL PROBIT /PRINT FREQ /CRITERIA ITERATE(20) STEPLIMIT(.6486 6. SAS.1289 +1/2 0.005 .342 3.0353 0. LIMDEP.1816 0.1).060 .091 .099 .0620 0. PROBIT model: PROBIT(p) = Intercept + BX ChiSquare Tests ChiSquare PROBIT Dfa 1168 Sig. Error .073 3.310 .121 . Stata.0621 0.878 2. Parameter Estimates 95% Confidence Interval Parameter PROBITa educate income age male www Intercept Estimate .015 .0072 0. prchange probit: Changes in Probabilities for trust educate income age male www Pr(yx) x= sd_x= min>max 0.007 .000 Lower Bound .1323 +sd/2 0.032 .4071 male .© 20032010.0059 0.038 . This command requires an additional variable (e.007 .001 .0619 0.0353 0..077 . .1330 1 0.5262 0.003 .410755 educate 14.0123 0.000 .6 Binary Probit Model in SPSS SPSS has the Probit command to fit the binary probit model.309 Upper Bound .4112 income 24. .0448 0.707 5. COMPUTE n=1.009 .0067 0. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 41 . n in the following example) with constant 1.457 http://www.
0907 (.0186 (.3418 (.9975 128.0173 (.3418 (.0992) 3.0158) .0992) 3.0301 (.9975 128.2786) 733.0298 (.0069) . PROBIT trust OF n WITH educate income age male www /LOG NONE /MODEL LOGIT /PRINT FREQ /CRITERIA ITERATE(20) STEPLIMIT(. and LIMDEP.2786) 733.edu/~statmath 42 .0186 (. R.0769) .© 20032010. Parameter estimates are the same across software packages. Stata. Table 3. 1510. The output is skipped.0907 (.0806 1479.0069) .2796) 733.1594 (.0300 (.995 1510.1).0995) 3. Statistics based on individual cases differ from statistics based on aggregated cases.0769) .0068) .0069) .9975 R glm() .629 .2786) 733.4097 z .0186 (.3418 (.0992) 3.0030) .0173 (.0154) .404 z Log likelihood Likelihood test Pseudo R2 1479.0029) .0186 (.442 Pearson GoodnessofFit Test 1174.1594 (.9914 1510.0030) .0907 (. LIMDEP.0158) .0301 (.9949 AIC 1510.0769) .0154) .0154) .1594 (.0029) .indiana.0154) .0173 (.1 Parameter Estimates and Goodnessoffit of the Binary Probit Model LOGISTIC Education Family income Age Gender (male) WWW use Intercept .4040 BIC (Schwarz) Chisquare H0 test * PROC LOGISTIC and R reports (2*Loglikelihood).9975 128.0029) .0030) .3418 (.0769) .995 z LIMDEP Probit$ .0173 (.0069) .1594 (. ** AIC*N and BIC*N in Stata and LIMDEP http://www.0186 (.e.2796) 733.0806 1480. The Probit command also fits the binary logit model. The following command reports z scores instead of Wald statistics and does not report factor changes of the odds.3418 (.6294 . I would recommend PROC LOGISTIC and Stata for the binary probit model.404 Chisquare SAS QLIM .0068) . .9975 128.0806 1479.457 a.0907 (.1594 (.0769) .0769) .995 1510. Stata.2786) 733.0992) 3.0806 1749.6811 .0173 (.63 . but standard errors in PROC LOGISTIC and R are slightly different from those computed in other software packages (i.0186 (.0995) 3.63 ..3418 (. PROC GENMOD. Table 3.1594 (. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 42 ChiSquare Tests ChiSquare PROBIT Dfa 1168 Sig. PROC PROBIT.0806 1749.1 summarizes parameter estimates and goodnessoffit statistics produced in SAS.0301 (.0907 (.0301 (. and SPSS). t Stata GENMOD . PROC QLIM.0907 (.probit .0173 (.9975 128.
biprobit) In Stata. * * y1 x1' 1 y2 1 . where social trust and Internet use are jointly determined. . Greene 2003:715716). and LIMDEP can fit bivariate probit models.16976 740.5431 = 564. you need to specify equations individually. 0 otherwise.3911 http://www. y2 1 if y2 0 . in each of which a binary variable and independent variables separated by an equal sign.© 20032010. and x1 and x2 are the regressor vectors of two regression equations.02303 740. y2 is a binary dependent variable of equation 2 that is included in the first equation as an endogenous variable. Stata.31217 740. you may list two dependent variables followed by covariates.36805 Comparison: log likelihood = 1304. If not.1 Bivariate Probit Model in Stata (. y1 1 if y1 0 . Bivariate Probit Regression Models Bivariate probit regression models have two equations for two binary dependent variables. identically distributed and follow the bivariate standard normal probability distribution with their correlation coefficient ρ: 2 (1 . The recursive bivariate probit model is formulated as (Maddala 1983:122123. 0 otherwise.3911 Fitting full model: Iteration 0: log likelihood = 1304.edu/~statmath 43 . If both equations have the same specification. Disturbances of two equations are assumed to be independent. quietly biprobit trust www educate income age male // or . where y1 is a binary dependent variable of interest in equation 1.biprobit estimates bivariate probit models. biprobit (trust = educate income age male) (www = educate income age male) Fitting comparison equation 1: Iteration Iteration Iteration Iteration 0: 1: 2: 3: log log log log likelihood likelihood likelihood likelihood = = = = 798. ) 1 2 exp 12 2 2 1 2 2 2 1 2 2(1 ) 1 Here we consider a model. A typical bivariate probit model does not include y2 in the first equation.indiana.86129 = 564. 2 . .02303 Fitting comparison equation 2: Iteration Iteration Iteration Iteration 0: 1: 2: 3: log log log log likelihood likelihood likelihood likelihood = 610.36806 = 564. SAS. 4. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 43 4. * ' * y2 x2 2 2 . This chapter explains how to fit the bivariate probit model and the recursive bivariate regression model with an endogenous variable. The following two commands fit exactly the same model.
0041361 male  .38788 +www  educate  .009039 41.00117 5.035 .369 .0003 This model fits the data well (χ2=185.98 0.87. If the correlation of disturbances of two equations is zero.8205 log likelihood = 1297.0371474 .004 .3044355 Likelihoodratio test of rho=0: chi2(1) = 13.247134 _cons  1.estat returns AIC 2.90 0.0155486 .00613 6. they should be identical.8205  Coef.0643811 . Interval] +trust  educate  .000 .79 0.06 0. mfx.004467 . estat ic Model  Obs ll(null) ll(model) df AIC BIC +.926968 .0150584 6.0076112 .80 0.64 0.indiana. z P>z [ 95% C.1831225 income  .1028598 .0166606 .0336384 age  .0065797 2.11 0.© 20032010. p<.03051 2.618 and BIC 2. Err.1412 Prob > chi2 = 0.edu/~statmath 44 .124171 0 (*) dy/dx is for discrete change of dummy variable from 0 to 1 .0003).83 0.012944 24.289774 4.885713 .60 0. p<.I. respectively. Since the likelihood ratio test above rejects the null hypothesis of zero correlation (χ2=13.1125278 .0180092 8.0766088 2.1323737 income  .673.  1174 .317766 .073346 . .3075 male* .0068117 2.25 0.314401 +rho  .3158495 _cons  2.0000).0924729 .000 3. Instead.0161267 .1412.2008033 .000 . marginal effects and conditional marginal effects here are different even at the same reference points.006753 . see [R] BIC note We can compute marginal effects and conditional marginal effects using predict(pmarg1) and predict(pcond1).091887 . .005 .8205 Number of obs Wald chi2(8) Prob > chi2 = = = 1174 185. pcond1) = .004592 . mfx.4744549 variable  dy/dx Std.00272 2.000 .000 .0317723 age  .000 . . 1297.000 1.fitstat and other SPost commands do not work with this model.003 .0000 Bivariate probit regression Log likelihood = 1297.641 2673. z P>z [95% Conf.21 0.391 Note: N=Obs used in calculating BIC. Std.53 0.0031951 3.2035694 .1478252 .000 .031 .0565478 3. Err.6486 age  .0542676 .0927378 .001 .2750501 10.16 0.002278 .0202876 .0029175 5.87 0. respectively.466056 2.165699 .0103983 . The Trustees of Indiana University Regression Models for Binary Dependent Variables: 44 Iteration 1: Iteration 2: Iteration 3: log likelihood = 1297.0188763 .8302 log likelihood = 1297. .87 0.0069369 .82 11 2617.021845 male  .049171 16 income  .0059803 .0776235 .025124 . ] X +educate  .55 0. predict(pmarg1) at(mean educate=16 male=0) http://www.0864866 0.0104085 . predict(pcond1) at(mean educate=16 male=0) Marginal effects after biprobit y = Pr(trust=1www=1) (predict.7498197 +/athrho  .
531195 .0188034 .0066392 3.69 0. z P>z [95% Conf.0080402 .99746 Fitting comparison equation 2: Iteration Iteration Iteration Iteration 0: 1: 2: 3: log log log log likelihood likelihood likelihood likelihood = 610. Interval] +trust  educate  .edu/~statmath 45 .021261 male  .000 .0407647 .084125 .2982 1297.000 .10951 733.000 .biprobit) What if Internet use influences social trust directly? In order words.0027 2.028822 .00609 6.5431 = 564.0743747 2.3140193 www  .0355894 age  .biprobit command.31217 734.36805 Comparison: log likelihood = 1298.024 .25 0. 2003).03045 2.0224759 .1616437 income  .4938755 5. Err.0316021 http://www.0095643 .99746 733.89 0.013329 24. WWW use is the dependent variable in the second equation and is also included in the first equation as an endogenous variable.0040837 .29 0. ] X +educate  .001 .3007 Number of obs Wald chi2(9) Prob > chi2 = = = 1174 194.88 0. z P>z [ 95% C.1510947 .000 3.210 1. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 45 Marginal effects after biprobit y = Pr(trust=1) (predict.13 0.0225769 .125674 0 (*) dy/dx is for discrete change of dummy variable from 0 to 1 4.000 .1682476 .3655 1298. Err.006316 .indiana. which is explained in Maddala (1983) and Greene (1996.002752 .030 .17 0.004 . .I.004 .36806 = 564.00116 5.3075 male* .052708 16 income  .53 0.563217 +www  educate  . This is a recursive bivariate probit model.004127 .0000 Seemingly unrelated bivariate probit Log likelihood = 1297.40 0.6486 age  .0063912 .5729155 1.45422459 variable  dy/dx Std.3655 Fitting full model: Iteration Iteration Iteration Iteration Iteration 0: 1: 2: 3: 4: log log log log log likelihood likelihood likelihood likelihood likelihood = = = = = 1298. pmarg1) = .4050543 _cons  2.40 0.© 20032010. Check the model name Seemingly unrelated bivariate probit in the following output.2 Recursive Bivariate Probit Model in Stata (.86129 = 564.0659948 . biprobit (trust = educate income age male www) (www = educate income age male) Fitting comparison equation 1: Iteration Iteration Iteration Iteration 0: 1: 2: 3: log log log log likelihood likelihood likelihood likelihood = = = = 798. Std.7178395 . Since the two equations have different specifications.0182167 8.0060047 .26 0.1867988 income  .0065301 2.0197756 6.004382 2.1153906 .3008 1297. they should be provided separately in parentheses after the .499174 1.840733 .3007  Coef.98 0.008655 41.21 0.3043 1297.0126723 .1228844 .003 .
86129 = 564.301 12 2618. conditional marginal effects make more sense than the typical marginal effects.12962 Prob > chi2 = 0.0101814 .45 0.14 0.indiana.© 20032010. predict(pcond1) at(mean educate=16 male=0 www=1) Marginal effects after biprobit y = Pr(trust=1www=1) (predict.601 2679.2512635 _cons  1. given they use the Internet: pr(trust=1www=1)=. .2928927 4.1445 This model also fits the data well (χ2=194.0164409 . p<.1804868 income  .08164 .419 Note: N=Obs used in calculating BIC.346 . Therefore.7916883 +/athrho  . .47208977 variable  dy/dx Std.0189197 .0663948 .004 .  1174 .000 1.1296) suggests that the two disturbances are not significantly correlated.1104197 .4621132 1.2295859 . .0318362 age  .146 .94 0. ] X http://www. estat ic Model  Obs ll(null) ll(model) df AIC BIC +.36805 www  Coef.443 .40. pcond1) = .1445).2337523 1.0103946 .000 .0031937 3.I. z P>z [ 95% C. The binary probit model for WWW use is as follows.19 0.25 0. the LR test (χ2=2. probit www educate income age male Iteration Iteration Iteration Iteration 0: 1: 2: 3: log log log log likelihood likelihood likelihood likelihood = 610.3032758 .0039219 male  .87 0.46 0.0060031 .0756 Probit regression Log likelihood = 564. z P>z [95% Conf. 1297.0879834 .853896 .619 and 2.6719729 .001 .365747 .35 0.36805 Number of obs LR chi2(4) Prob > chi2 Pseudo R2 = = = = 1174 92. AIC and BIC are 2.9182416 Likelihoodratio test of rho=0: chi2(1) = 2. The estimated correlation .7226694  In the recursive bivariate probit model.004121 male  .0032009 3.939807 .5862762 .000 1.5863 is far away from zero but is not statistically discernable (p<.2885836 4. mfx.05 level.5431 = 564. respectively.77 0.0000 0.1454532 .2361435 _cons  1.0865442 0.0065902 2.001 .0178746 8.66 0. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 46 age  .36806 = 564.1033538 . The predicted probability that citizens trust most people is 47.edu/~statmath 46 .679.288283 . Err. Err. social trust and WWW use may not be jointly determined.0000) and most individual parameters are statistically significant at the .086608 0. each equation may need to be estimated separately or may be analyzed in the bivariate probit model.577698 +rho  . quietly biprobit (trust = educate income age male www) (www = educate income age male) .21 percent at the reference points. see [R] BIC note However. Interval] +educate  .4721.0166682 . Std.
The following Stata script illustrates how to compute manually direct and indirect effects of covariates. quietly biprobit (trust global rho=e(rho) global n1 = 6 global n2 = 5 = educate income age male www) (www = educate income age male) // correlation coefficient of disturbances // the number of parameters in equation 1 // the number of parameters in equation 2 .34 0. global xb2=xb2[1.2858939 .0061891 .7853492 ...00132 4.0079921 .02987 2. matrix xb1=b1*ref1' . // compute the predicted probability at the reference points .0394964 .$n2] . The Trustees of Indiana University Regression Models for Binary Dependent Variables: 47 +educate  .6486 age  .22 0.edu/~statmath 47 . matrix xb2=b2*ref2' .4505963 ..013198 24.. . $xb2. tabstat educate income age male www. // compute direct effects global g1=normalden($xb1)*normal(($xb2($rho)*$xb1)/sqrt(1($rho)^2)) matrix directE=$g1/normal($xb2)*b1 matrix directE=directE[1. .5]=1 // reference points for equation 1 // education (college graduation) // female // WWW use // reference points for equation 2 .$n2]=1 .95 percent.028 .1] .4721 in the middle of the output. global g2=normalden($xb2)*normal(($xb1($rho)*$xb2)/sqrt(1($rho)^2)) . See the Stata script in Appendix for entire steps of computation.002786 . // get matrix matrix matrix parameter estimates b0=e(b) b1=b0[1.007193 .$n2] .027053 .$n1+$n2] // parameter estimates for equation 1 // parameter estimates for equation 2 . . matrix ref2[1. Find the predicted probability of . .000 .133196 1 (*) dy/dx is for discrete change of dummy variable from 0 to 1 Stata .124284 0 www* .1.181 .24276 24. . stat(mean) col(variable) save stats  educate income age male www +mean  14. holding all other variables constant at their reference points.64864 41.$n2]=0 http://www. .008786 41.065738 .05194 16 income  .4]=0 ref1[1. the conditional predicted probability of trusting people will increase by 3.3075 male* . . for an additional increase in education from the 16 years. ./// (binormal($xb1.21383 1. .indiana. .00635 6.67 0. matrix ref2 = ref1[1. $rho)/normal($xb2) . Beginners may skip this part and take a look at the result table only. di binormal($xb1. matrix indirectE[1. . matrix indirectE=($g2/normal($xb2).$rho)*normalden($xb2))/(normal($xb2)^2))*b2 .mfx does not report direct and indirect effects but returns the sum of the two effects. matrix matrix matrix matrix ref1 = r(StatTotal).I(1) ref1[1. See Greene (1996.1.1] // compute xb1 of equation 1 // compute xb2 of equation 2 // put xb1 into a global macro for computation // put xb1 into a global macro for computation .00266 3. . global xb1=xb1[1.20 0. .© 20032010.$xb2.01 0.000 .47208977 .1]=16 ref1[1.$n1+1.3075 .704984 .$n1] b2=b0[1. When combining direct and indirect effects. 2007) for related formulas. // compute indirect effects .003592 .003 .1.
edu/~statmath 48 . z P>z [ 95% C.00258 3.000834 41.01825 0. ] X +educate  .00759 6.0095366 .3 Bivariate Probit Models in SAS: PROC QLIM In SAS.00535285 . predict(pmarg2) at(mean educate=16 male=0 www=1) Marginal effects after biprobit y = Pr(www=1) (predict.442 .001277 .20246 1.05190699 Indirect . Err.0124106 Overall .0140228 .3032191 0 .002 .00083628 .00618913 Male 0 .0049525 .307496 .001515 . pmarg2) = .37 0.0331092 . ENDOGENOUS describes characteristics of dependent variables.0008.005 .0480246 . Like Stata.171 .03949639 Income 24.00377 .42 0.033147 .28589388 Read the last line for overall marginal effects and discrete changes and compare with the output of the .06573803 WWW 1 .024 .002231 .82 0.I.84 0.6486 age  . 0 0 1 (*) dy/dx is for discrete change of dummy variable from 0 to 1 4.0124).000 . PROC QLIM is able to estimate both bivariate probit models. pmarg1) = .00145 2.37 0. The predicted probability of trusting people is .006963 24.indiana.3075 male* .673911 .© 20032010.0041204 . SAS allows specifying two equations in a line if they share the same specification. matrix Overall=directE+indirectE … (the procedure for computing discrete change is skipped) … . but age has both positive direct and indirect effects (.119717 1 (*) dy/dx is for discrete change of dummy variable from 0 to 1 .86317073 variable  dy/dx Std.33 0. The following two commands compute marginal effects of equation 1 and 2 (pmarg1 and pmarg2). predict(pmarg1) at(mean educate=16 male=0 www=1) Marginal effects after biprobit y = Pr(trust=1) (predict. The overall impact of education on social trust is the sum of direct (.00545353 . z P>z [ 95% C.005 .648637 .008926 .02941 2. matrix list Marginal Marginal[4. mfx.mfx above.003628 .0519) and indirect effects (.8632. Err.13 0.001 .00319 10.3075 male* . .0054 and .5] Education Reference 16 Direct .124217 0 www* . .2770971 . in this example.039366 16 income  .000 . while the predicted probability of using WWW in the second equation is .41959352 variable  dy/dx Std. // compute overall effects .4196 at the reference points.77 0.062903 16 income  . they are discrete variables http://www.00175 2.00799213 Age 41.0665716 .049801 0 www* 0 0 .0015.013876 24.00154447 . Family income also has negative indirect effect . mfx. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 48 .021756 .0088233 .07106867 .I. respectively).00071 3.6486 age  .00839 41.026852 . ] X +educate  .26 0.
018010 0.0002 2 trust www 1174 1298 0.0004068 55 QuasiNewton 2618 2673 Parameter trust.018876 0.0001 <.income www. MODEL trust www = educate income age male.015059 0.165699 1.53 Model Fit Summary Number of Endogenous Variables Endogenous Variable Number of Observations Log Likelihood Maximum Absolute Gradient Number of Iterations Optimization Method AIC Schwarz Criterion Algorithm converged.age trust. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 49 whose disturbances are normally distributed.2008).25 0.income trust.90 3.002918 0. Parameter Estimates Standard Error 0.male _Rho DF 1 1 1 1 1 1 1 1 1 1 1 Estimate 2.0001 0.289789 0.086487 0.102860 0. and standard errors.054268 Approx Pr > t <.006812 0.0001 0.09 41. PROC QLIM DATA=masil.0029 <.53 2.70 http://www.0041 0.076609 0.87 3.educate www.275060 0.200803 t Value 10.91 Discrete Response Profile of www Index 1 2 Value 0 1 Frequency 252 922 Percent 21.© 20032010.0011 0.98 5.55 8.317767 0.010398 0.64 6.0001 <.147825 0.21 2. parameter estimates.0001 0.16 4.077624 0.male www.3694 0. ENDOGENOUS trust www ~ DISCRETE(DIST=NORMAL).educate trust.Intercept trust.Intercept www.926969 0.003195 0.indiana. Stata and SAS report the same correlation of disturbances (ρ=.020288 0.gss_cdvm.0305 <.83 2. RUN. The QLIM Procedure Discrete Response Profile of trust Index 1 2 Value 0 1 Frequency 682 492 Percent 58.47 78.age www.edu/~statmath 49 .006580 0.016127 0.
0001 <. The ENDOGENOUS statement is needed to indicate the probability distribution of disturbances in the two equations.© 20032010.educate DF 1 1 1 1 1 1 1 1 Estimate 2.Intercept trust.0039 0.25 4.00327 52 QuasiNewton 2619 2679 Parameter trust.www www. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 50 Now.21 3.074380 0.532266 0.53 Model Fit Summary Number of Endogenous Variables Endogenous Variable Number of Observations Log Likelihood Maximum Absolute Gradient Number of Iterations Optimization Method AIC Schwarz Criterion Algorithm converged.004389 0.66 8. let us fit the recursive bivariate probit model.gss_cdvm. RUN. The QLIM Procedure Discrete Response Profile of trust Index 1 2 Value 0 1 Frequency 682 492 Percent 58.12 6.26 1.47 78.male trust.018218 Approx Pr > t <.89 2.29 http://www.09 41.574098 0.0001 0. MODEL www = educate income age male.0001 2 trust www 1174 1297 0.716498 1.91 Discrete Response Profile of www Index 1 2 Value 0 1 Frequency 252 922 Percent 21.indiana.0007 0. Notice that the two equations are provided in two separate MODEL statements.151091 t Value 5.age trust.edu/~statmath 50 . Parameter Estimates Standard Error 0.40 2. PROC QLIM DATA=masil.2120 <.012681 0.494644 0.educate trust. ENDOGENOUS trust www ~ DISCRETE(DIST=NORMAL).365669 0.122857 0.168258 0.022575 0.0001 <.292877 0.006640 0. MODEL trust = educate income age male www.0237 0.019796 0.income trust.Intercept www.
2) .4 Bivariate Probit Models in LIMDEP (Bivariateprobit$) Bivariateprobit$ estimates bivariate probit models in LIMDEP.27716   Info.6486371 AGE  .22987   Info.00643465 2. BIVARIATEPROBIT.4431 0.AGE. Criterion:HQIC = 2.20080326 .153 ..INCOME.77 1. The Trustees of Indiana University www.92696771 .16569900 .EDUCATE.003193 0. 2009 at 03:16:00PM.EDUCATE.01414096 7.0000 14.3747 .0000 EDUCATE  .0000 14.93 0. ++  FIML Estimates of Bivariate Probit Model   Maximum Likelihood Estimates   Model estimated: Sep 15.161 .01887630 . Criterion: BIC = 2.888 . .MALE.INCOME. which are slightly different (e. Rh2=ONE.00293070 5.010182 0.g.5863 versus .01612671 .29250724 4.AGE.27487860 10.5856 in ρ and . 4.7178 versus .066424 0. Criterion: AIC = 2.WWW.income www.0034 24.14782515 .503 .585570 Regression Models for Binary Dependent Variables: 51 0. Exit status=0.383 .697 . whereas Rh1= and Rh2= respectively specify the independent variables for the two equations.edu/~statmath 51 .0540 Stata and PROC QLIM produce the same result except for the correlation of disturbances and parameter estimates of WWW use.00328982 3.648 .02028760 .P[Z>z] Mean of X +++++++ +Index equation for TRUST Constant 2.0040 0.274 .31776621 .07696720 2.2427598 INCOME  .01039833 .Er.0041 24.0016 41.0014 0.505 .7165 for WWW use). Rh1=ONE.19 0.88 3.303930 2.45059625 +Disturbance correlation RHO(1.820   Number of parameters 11   Info.24758  ++ +++++++ Variable Coefficient  Standard Error b/St.869 .  Dependent variable TRUWWW   Weighting variable None   Number of observations 1174   Iterations completed 17   Log likelihood function 1297.018804 0.0000 EDUCATE  .10285982 .22968   Finite Sample: AIC = 2.Lhs=TRUST. The Lhs= subcommand lists the two binary dependent variables.6486371 AGE  .08744329 .01763456 8.00707111 2.086610 0.0000 41.0002 ++  Joint Frequency Table for Bivariate Probit Model   Predicted cell is the one with highest probability  ++  WWW  +++  TRUST  0 1 Total  ++++  0  180  502  682   Fitted  ( 36)  ( 730)  ( 766)  http://www.© 20032010.45059625 +Index equation for WWW Constant 1.934 .age www.3074957 MALE  .2427598 INCOME  .05431808 3.MALE$ Normal exit from iterations.3074957 MALE  .006530 0.indiana.male _Rho 1 1 1 1 0.07762348 .0313 .
and standard errors with some rounding errors.AGE.3694 .898 .MALE. SAS.Er. and LIMDEP produce same correlation coefficient of errors. Exit status=0.MALE.WWW.284 .EDUCATE. BIVARIATEPROBIT.16824823 .0212 41.23072   Info.AGE.305 .0001 EDUCATE  .indiana.2772*1.28230   Info. Marginal Effect$ Normal exit from iterations.174 and 2.25003  ++ +++++++ Variable Coefficient  Standard Error b/St.j) is cell with largest probability   Neither TRUST nor WWW predicted correctly   82 of 1174 observations   Only TRUST correctly predicted   TRUST = 0: 143 of 682 observations   TRUST = 1: 25 of 492 observations   Only WWW correctly predicted   WWW = 0: 4 of 252 observations   WWW = 1: 25 of 922 observations   Both TRUST and WWW correctly predicted   TRUST = 0 WWW = 0: 15 of 180   TRUST = 1 WWW = 0: 0 of 72   TRUST = 0 WWW = 1: 359 of 502   TRUST = 1 WWW = 1: 218 of 420  ++ The above output suggests that Stata.edu/~statmath 52 .030 .3074957 MALE  . Criterion:HQIC = 2.673=2. fit the recursive bivariate probit model by adding WWW use to the first equation as an endogenous variable.265 .EDUCATE. Rh1=ONE.0000 14.  Dependent variable TRUWWW   Weighting variable None   Number of observations 1174   Iterations completed 24   Log likelihood function 1297. ++  FIML Estimates of Bivariate Probit Model   Maximum Likelihood Estimates   Model estimated: Sep 15.P[Z>z] Mean of X +++++++ +Index equation for TRUST Constant 2.71772906 .07532931 2.6486371 AGE  .78534923 +Index equation for WWW http://www.79960562 .INCOME. parameter estimates. AIC and BIC are 2617=2. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 52 ++++  1  72  420  492   Fitted  ( 0)  ( 408)  ( 408)  ++++  Total  252  922  1174   Fitted  ( 36)  ( 1138)  ( 1174)  ++++ ++  Bivariate Probit Predictions for TRUST and WWW   Predicted cell (i.00549849 2.301   Number of parameters 12   Info.02325478 5.62810574 4. Rh2=ONE.174.53127459 .0011 24.23050   Finite Sample: AIC = 2.© 20032010. Criterion: AIC = 2. Now.0255 .234 .01267296 .INCOME. 2009 at 00:21:09PM.Lhs=TRUST. Criterion: BIC = 2.2427598 INCOME  .00691464 3.12288180 .2297*1.02257666 .45059625 WWW  .WWW. Marginal Effect (or Margin) in the following command computes marginal effects and discrete changes at the means of the independent variables. respectively.
38237776 .   These are the direct marginal effects.0000 .2427598 INCOME  .00000  .0000 ..3074957 MALE  .   They are computed at the means of the Xs..03718914 .0314 ..03045594 2.45059625 WWW  .1676 14..05291298 .29541029 EDUCATE  .07245  .0258 ..00000  .indiana..0055 24.115 .30905  .3074957 MALE  .Er..   Effect shown is total of 4 parts above.4190 .58621974 ..   They are computed at the means of the Xs.2427598 24.01587199 3.38237776 .380 .   Estimate of E[y1y2=1] = ..0048 24.00000   MALE  .4190 .00000  .  ++ +++++++ Variable Coefficient  Standard Error b/St..00584175 6.00000  .00691  .499957   Observations used for means are All Obs.   Estimate of E[y1y2=1] = .  ++ +++++++ Variable Coefficient  Standard Error b/St.0028 41.45059625 ++  Marginal Effects for Ey1y2=1  ++++++  Variable  Efct x1  Efct x2  Efct h1  Efct h2  ++++++  ONE  .Er.   Total effects reported = direct+indirect.00545698 ..06553806 .2427598 INCOME  .07244780 .499957   Observations used for means are All Obs.01880339 .30905460 .30905460 .00000   AGE  .6486371 AGE  ..00196  .152 ..   Effect shown is total of 4 parts above.00123352 5.edu/~statmath 53 .00000  .00000  .. EDUCATE  .00000   EDUCATE  .000000 .00000  ++++++ ++  Partial derivatives of E[y1y2=1] with   respect to the vector of characteristics.P[Z>z] Mean of X +++++++ Constant .00776473 ..00000   WWW  .78534923 ++  Partial derivatives of E[y1y2=1] with   respect to the vector of characteristics.15109435 .4480 .(Fixed Parameter)..05291  .03248863 2.00000   INCOME  .00972153 .000000 ..334 .000000 .42476829 4..   Estimate of E[y1y2=1] = ..988 .(Fixed Parameter).© 20032010.00326806 MALE  ...00000  ...   They are computed at the means of the Xs. EDUCATE  .00182639 2..779 .00279401 2..6486371 AGE  .45059625 WWW  ..00000  .P[Z>z] Mean of X +++++++ Constant .230 .01790608 INCOME  .499957   Observations used for means are All Obs.823 .6486371 41.759 1.00000  ..  ++ +++++++ Variable Coefficient  Standard Error b/St.283 ..08750730 +Disturbance correlation RHO(1...808 .01572  .919 3.00106  .   Effect shown is total of 4 parts above.00972  .06639735 .0035 .Er.3074957 .P[Z>z] Mean of X +++++++ Constant .623 8.00644213 AGE  .(Fixed Parameter).366 .00651654 .0000 41..00344429 2.   These are the indirect marginal effects.438 2.0018 .808 ..36574036 .2) .01018150 ..78534923 ++  Partial derivatives of E[y1y2=1] with   respect to the vector of characteristics. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 53 Constant 1.00546  .0009 14. http://www.0000 14.
Stata.. ] X + http://www.3074957 .090 .048 ...065467 . The effects are   computed using E[y1y2=1.01418159 1. LIMDEP and Stata report the same conditional predicted probability of 49.909 ++  Joint Frequency Table for Bivariate Probit Model   Predicted cell is the one with highest probability  ++  WWW  +++  TRUST  0 1 Total  ++++  0  180  502  682   Fitted  ( 54)  ( 560)  ( 614)  ++++  1  72  420  492   Fitted  ( 0)  ( 560)  ( 560)  ++++  Total  252  922  1174   Fitted  ( 54)  ( 1120)  ( 1174)  ++++ ++  Bivariate Probit Predictions for TRUST and WWW   Predicted cell (i. predict(pcond1) at(mean male=.296117 .© 20032010. The correlation of disturbances is .01572384 .(Fixed Parameter).E[y1y2=1..2945 . The effect   accounts for all appearances of the variable in the model.d=0] where d is   the variable.2675 .00690973 . Err...I.109 .edu/~statmath 54 .00097193 1.157 WWW ..5856). mfx.676 .49996773 variable  dy/dx Std. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 54 EDUCATE INCOME AGE MALE WWW      . Let us compare the LIMDEP output (direct and indirect effects combined) with the following output computed in Stata: . pcond1) = . but LIMDEP produces slightly different standard errors. z P>z [ 95% C.030353 2.01021978 .. 14. Variances use the delta method.d=1] .450596 www=.00186681 1.00195680 ..9968 percent and conditional marginal effects at the means of covariates. ++ Variable Effect Standard error t ratio  ++ MALE .5862 in Stata and LIMDEP but is slightly different in SAS (ρ=.2427598 24. and LIMDEP produce almost the same parameter estimates and log likelihood.6486371 41.325843 .785349) Marginal effects after biprobit y = Pr(trust=1www=1) (predict.00105955 ..45059625 ++  Analysis of dummy variables in the model..4990 .000000 .j) is cell with largest probability   Neither TRUST nor WWW predicted correctly   166 of 1174 observations   Only TRUST correctly predicted   TRUST = 0: 25 of 682 observations   TRUST = 1: 67 of 492 observations   Only WWW correctly predicted   WWW = 0: 3 of 252 observations   WWW = 1: 67 of 922 observations   Both TRUST and WWW correctly predicted   TRUST = 0 WWW = 0: 21 of 180   TRUST = 1 WWW = 0: 0 of 72   TRUST = 0 WWW = 1: 356 of 502   TRUST = 1 WWW = 1: 213 of 420  ++ SAS.indiana.2756 .
004 . Stata reports this combined marginal effect.16 0.© 20032010.00691029 . indirect. by definition. and the correlation coefficient of disturbance (ρ=.5467 percent for gender and 29. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 55 educate  .89 0.09 0. For example. The following table reports direct. Find the equivalent overall effect in the table under Total effects reported = direct+indirect of the above LIMDEP output.03718922 Income 24.30910722 0 .00269 2.031 .0372=.00105967 . LIMDEP produces other two tables for direct (see under These are the direct marginal effects) and indirect effects (see under These are the indirect marginal effects).03028 2.0054568 .6117 for WWW use.013031 24.0077648 . For instance.161052 .00651647 Male .00776475 Age 41.006124 .000 . In the bivariate probit model. See Greene (1996.753376 . In the recursive bivariate probit model. Stata. and LIMDEP produce the same parameter estimates and goodnessoffit http://www.0655 of male and . Table 4.05291496 . so its overall impact on social trust is the sum of the two effects.785349 (*) dy/dx is for discrete change of dummy variable from 0 to 1 LIMDEP reports direct and indirect effects separately in addition to direct and indirect effect combined. . Discrete changes .6486 age  .2008). similarly. parameter estimates. a single equation for social trust may mistakenly report an overestimated impact of education. they are not. 2003) for discussion of computing and interpreting marginal effects in the recursive bivariate probit model.edu/~statmath 55 .0012 5.307496 .45059625 .43 0.2428 income  . See the attached Stata script for computation. education has a direct effect of . Therefore. The first table under the label Marginal Effects for Ey1y2=1 right after the parameter estimates summarizes direct and indirect effects. Notice that the last two numbers (. but LIMDEP produces slightly different standard errors.450596 www* .23328 1.204 .00195703 .3075 male* .000 . LIMDEP reports discrete changes (E[y1y2=1.0157.01572574 . its overall effect is determined by magnitudes of two effects.d=1]E[y1y2=1.0157.01572.0654669 . which is .29616189 Analysis of direct and indirect effects is very useful especially when two effects have opposite signs.d=0]) separately at the bottom of the output. SAS.008869 41.06546686 WWW .002498 .004164 . SAS.indiana.0372=.0529.78534923 . and LIMDEP.049165 14. Reference Direct Indirect Overall Education 14.3091 of WWW use under direct+indirect in the LIMDEP output are different from those of Stata since LIMDEP computes at the means of all covariates including binary variables.05291 and an indirect effect .12481 . education influences positively social trust in the first equation but has a negative impact (indirect effect) on WWW use in the second equation.0655 and . all three software packages report the same goodnessoffit measures. respectively. discrete changes (differences in predicted probabilities between trust=0 and trust=1).1 compares the results of bivariate probit models across Stata.648637 .0065165 . in fact.00972179 . the large direct impact dominates in this case.025213 .24276 .2962) on row Overall are discrete changes of gender and WWW use. If this specification is correct. Find 6.0529.27 0.00611 6.0371892 .07244873 . and overall effects computed manually at the means of covariates in Stata.2961619 .
0029) .0065) .0198) .0029) .1682 (.5741) 2.5856 versus .0865) 1.7178) and correlation coefficient (ρ=.0104 (.0189 (.0182) .2929) 1297.3039) 2619 2679 .4946) .5729) 2.1657 (.0776 (.820 .386 Bivariate Probit Model SAS LIMDEP .0151) .7165 versus .0874) 1.0127 (.1511 (.0032) .0543) 2617.5323 (.2749) .1029 (.1511 (.0069) .0127 (.0102 (.2898) 1298 .1478 (.3178 (.2925) 1297.0203 (.0044) .0866) 1.0029) .644 2673.0189 (.0182) .0664 (.1682 (.0161 (.3178 (.5862 (.8205 185.0065) .7178 (.0141) .0176) .0032) .0055) .0068) .0102 (.2751) .0180) .0032) .0189 (.0151) . The Trustees of Indiana University Regression Models for Binary Dependent Variables: 56 measures. SAS reports a bit different parameter estimate of the endogenous variable (.4248) 2618.1029 (.2008 (.0866) 1.0766) χ2 to test ρ=0 2618 AIC 2673 BIC (Schwarz) * AIC*N and BIC*N in LIMDEP http://www.2898) 1297.0068) .0063) .1657 (.0776 (.0180) .0044) .1 Parameter Estimates and Goodnessoffit of Bivariate Probit Models Stata Education Family income Age Gender (male) WWW use Intercept Education Family income Age Gender (male) Intercept Log likelihood Likelihood test Rho (ρ) 2.5863).1478 (.1296 2618.indiana.1682 (.0233) . but LIMDEP produce different standard errors.391 2.0066) .2954) 1297.3007 194.3033) 2.1229 (.0226 (.1657 (.0161 (.0188 (.1029 (.0179) .0744) .0766) .0033) .0226 (.5856 (.419 .0188 (.0066) .5313 (.0664 (.0543) 13.9270 (.1511 (.87 .3657 (.0066) .0226 (.420 .601 2679.0102 (.3178 (.7996) 2. Table 4.0664 (.0071) .0203 (.1412 2617.0066) .0161 (.2751) .7177 (.edu/~statmath 56 .0104 (.0188 (.© 20032010.0744) .0753) .2008 (.0865) 1.607 2679.5863 (.0104 (.2929) 1297 .0770) Recursive Bivariate Probit Model Stata SAS LIMDEP .0032) .0033) .1229 (.0875) 1.3657 (.0064) .9270 (.0776 (.3657 (.5312 (.0127 (.4939) .9270 (.0203 (.0198) .2008 (.6281) .40 .7165 (.641 2673.0543) 2.301 .1478 (.1229 (.
if the dependent variable is binary. truncation. J. Like the Bayesian estimation method. Conclusion The regression models discussed so far are of categorical dependent variables (binary. Generally speaking. Consequently. If you have small N. is not always a virtue since it absurdly boosts the statistical power of a test without adding new information. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 57 5. and nested logit models. investigate the DGP carefully and then choose one of the multinomial logit. factor changes in odds. try to fit either ordered logit or probit regression model. may be mistakenly reported as statistically significant. These issues are not addressed in this brief technical note. sample selection. ordinal. You must also examine the data generation process (DGP) of a dependent variable to understand its “behavior. an extremely large N. This is the so called “small N and large parameter” problem. the maximum likelihood estimation method depends on data. and other particular patterns of the DGP. Simply reporting parameter estimates and goodnessoffit statistics is not sufficient. researchers need to spend more time and effort interpreting the results substantively. You should check key assumptions of a model before fitting the model. If an assumption of an ordered or nominal response model is violated. and nominal responses). and marginal effects (discrete changes) of predicted probabilities.” Experienced researchers pay special attention to censoring. An appropriate regression model is determined largely by the measurement level of the categorical dependent variable of interest. The level of measurement should be considered in conjunction with theory and research questions (Long 1997). Even a tiny effect. logit and probit models require larger N than do linear regression models. The situation becomes even worse in generalized ordered logit and multinomial logit models. DO NOT include a large number of independent variables. In general. where many parameter estimates and related statistics are produced. http://www.indiana.© 20032010. It is highly recommended to visualize marginal effects and discrete changes using a plot of predicted probabilities. find alternative models or consider if a dependent variable can be explored in a binary response model by dichotomizing the variable. which should have been negligible in a normal situation. you may use the binary logit or probit regression model. In contrast. In order to use the conditional logit and nested logit. Since logit and probit models are nonlinear. You may respectively conduct the Brant test and Hausman test for these assumptions. say millions to estimate only two parameters. For ordinal responses. You need to check if you have sufficient valid observations especially when your data contain many missing values. their parameter estimates are difficult to interpret intuitively. you need to reshape the data set in advance. If you have a nominal response variable. Scott Long‟s rule of thumb says 500 observations and at least additional 10 per independent variable are required in ML estimation. conditional logit.edu/~statmath 57 . Examples are the parallel regression assumption in ordered logit and probit models and the independence of irrelevant alternatives (IIA) assumption in the multinomial logit model. you may not be able to reach convergence in estimation and/or may not get reliable results with desirable asymptotic ML properties. Scott Long (1997) and Long and Freese (2003) provide good examples of meaningful interpretations using predicted probabilities.
LIMDEP computes direct and indirect effects in the recursive bivariate probit model and helps researchers interpret the result in more detail.prgen. but PROC LOGISTIC and PROC QLIM appear to be best for binary and ordinal response models. and .prchange.html http://www. I also strongly recommend using Stata since it provides handy ways to fit various models and also can be assisted by SPost.indiana. However. The University Information Technology Services (UITS) Center for Statistical and Mathematical Computing.fitstat. QLIM. and MDC procedures of SAS/ETS (see Table 2. You may benefits from R‟s objectoriented programming concept and analyze data flexibly in your own way. . Working Paper. in particular. . LIMDEP supports various regression models for categorical dependent variables addressed in Greene (2003) but does not seem as userfriendly and stable as SAS and Stata. I encourage the SAS Institute to develop additional statements similar to. Hun Myoung. LIMDEP. Regression Models for Ordinal and Nominal Dependent Variables Using SAS. ODS is another advantage of using SAS.prchange and . 2009.listcoef.1 and 3. Stata.1). Indiana University. and SPSS. .edu/~statmath/stat/all/cdvm/index_nominal.” http://www.edu/~statmath 58 .prtab. SPSS is least recommended mainly due to its limited support for categorical dependent variable models and messy syntax and output. SAS also has PROC GENMOD and PROC PROBIT.prgen. For logit and probit models for ordinal and nominal outcome variables. which has various useful commands such as . The Trustees of Indiana University Regression Models for Binary Dependent Variables: 58 Regarding statistical software packages. .© 20032010. I would recommend the SAS LOGISTIC.indiana. and PROC MDC is good for nominal dependent variable models. see Park.
edu/~statmath/stat/all/cdvm/gss_cdvm. tab trust male.174 .4936188 0 1 belief  1174 1.R (R script) trust: 1 if a respondent trust most people belief: Religious intensity: no religion (0) through strong (3) educate: respondent‟s education (years) income: family income ($1.40713 18 86 male  1174 .4977653 0 1 www  1174 .edu/~statmath/stat/all/cdvm/cdvm_binary.© 20032010.4107548 0 1 . Dev.csv http://www.5 27.edu/~statmath/stat/all/cdvm/cdvm_binary.00) age: respondent‟s age male: 1 for male and 0 for female www: 1 if a respondent have used WWW . The Trustees of Indiana University Regression Models for Binary Dependent Variables: 59 Appendix: Data Sets The sample data set is a subset of the 2000 and 2002 General Social Survey of NORC (http://www. Min Max +trust  1174 . sep(20) Variable  Obs Mean Std.3075 13.174 .044809 0 3 educate  1174 14.5 age  1174 41.indiana. miss  WWW Use Gender  Nonusers Users  Total http://www.4505963 .19427 . http://www.indiana.4190801 .sas7bdat http://www.dta http://www. tab trust www. sum trust belief educate income age male www. tab male www.indiana.indiana.do (Stata script) http://www.24276 2.000.569712 2 20 income  1174 24.indiana.64864 6.norc. miss Social  WWW Use Trust  Nonusers Users  Total ++0  180 502  682 1  72 420  492 ++Total  252 922  1.892675 1.edu/~statmath/stat/all/cdvm/gss_cdvm.indiana.edu/~statmath/stat/all/cdvm/gss_cdvm.org).edu/~statmath 59 . miss Social  Gender Trust  Female Male  Total ++0  397 285  682 1  248 244  492 ++Total  645 529  1.7853492 .
tab belief www. tab belief male. miss Religious  WWW Use Intensity  Nonusers Users  Total ++No religion  38 154  192 Somewhat strong  37 97  134 Not very strong  95 361  456 Strong  82 310  392 ++Total  252 922  1.174 . miss Religious  Gender Intensity  Female Male  Total ++No religion  80 112  192 Somewhat strong  79 55  134 Not very strong  239 217  456 Strong  247 145  392 ++Total  645 529  1. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 60 ++Female  149 496  645 Male  103 426  529 ++Total  252 922  1.174 http://www.edu/~statmath 60 .© 20032010.indiana.174 .
1991. William H. College Station. Stokes. 09 Fifth draft (Estimated models using different data and rewrote chapter 24) http://www.. Colin. College Station. Greene.indiana.© 20032010. Davis. J. Cameron. Indiana University. NC: SAS Institute. NJ: Prentice Hall. Cameron. Greene. 2007. William H. 09 Third draft (Added bivariate logit/probit and nested logit models) 2008. Limited Dependent and Qualitative Variables in Econometrics.edu/~statmath 61 . 10 Fourth draft (Added SAS ODS and SPSS output) 2009. TX: Stata Press. New York: Cambridge University Press. Sage Publications. Econometric Analysis. Acknowledgements I am grateful to Jeremy Albright and Kevin Wilhite at the UITS Center for Statistical and Mathematical Computing for comments and suggestions.0 Econometric Modeling Guide. 04 First draft 2004. William H. Maddala. A. and Pravin K. G. and Gary G. A. and Jeremy Freese. New York: Cambridge University Press. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 61 References Allison. Stern School of Business. IL: SPSS Inc.1 User's Guide. Koch. S. I also thank J. 2007. Long. SPSS Inc. Colin. Cary. 07 Second draft 2005. and Pravin K. Logistic Regression Using the SAS System: Theory and Application. IL (September 2628. Stata Base Reference Manual. 2009. 1983. Cary. 2003. Scott. 2004. Trivedi. A special thanks to many readers around the world who have eagerly provided constructive feedback and encouraged me to keep improving this document. 1996. J. Upper Saddle River. Microeconometrics Using Stata. "Presenting the Binary Logit/Probit Models Using the SAS/IML. Good in the School of Public and Environmental Affairs. SAS Institute. 2nd ed." Proceedings of the 15th Midwest SAS Users Group Conference in Chicago. Microeconometrics: Methods and Applications. SAS/STAT 9. Paul D. NC: SAS Institute. Chicago. 2nd ed. Regression Models for Categorical and Limited Dependent Variables: Advanced Quantitative Techniques in the Social Sciences. 5th ed. Regression Models for Categorical Dependent Variables Using Stata. Cary. New York University. Scott. SPSS 16. Revision History 2003. TX: Stata Press.0 Command Syntax Reference. Scott Long in Sociology and David H. 2004. Long. 2003. Greene. Trivedi. Marginal Effects in the Bivariate Probit Model. Hun Myoung. LIMDEP Version 9. Stata Press. 1997. 2007. 2000. New York: Econometric Software. Maura E. Plainview. Release 10. NC: SAS Institute. 2005. Charles S. 2004). Categorical Data Analysis Using the SAS System. Park. TX: Stata Press.
© 20032010. Edited by Dani Marinova. The Trustees of Indiana University Regression Models for Binary Dependent Variables: 62 2010.indiana.edu/~statmath 62 . http://www.
This action might not be possible to undo. Are you sure you want to continue?