MDC Procedure

Example 23.1 Binary Data Modeling

(View the complete code for this example.)

The MDC procedure supports various multinomial choice models. However, you can also use PROC MDC to estimate binary choice models such as binary logit and probit because these models are special cases of multinomial models.

Spector and Mazzeo (1980) studied the effectiveness of a new teaching method on students’ performance in an economics course. They reported grade point average (gpa), previous knowledge of the material (tuce), a dummy variable for the new teaching method (psi), and the final course grade (grade). A value of 1 is recorded for grade if a student earned the letter grade "A," and 0 otherwise.

The binary logit can be estimated using the conditional logit model. In order to use the MDC procedure, the data are converted as follows so that each possible choice corresponds to one observation:

data smdata;
   input gpa tuce psi grade;
datalines;
2.66      20      0        0
2.89      22      0        0
3.28      24      0        0
2.92      12      0        0

   ... more lines ...   

data smdata1;
   set smdata;
   retain id 0;
   id + 1;

   /*-- first choice --*/
   choice1 = 1;
   choice2 = 0;
   decision = (grade = 0);
   gpa_2 = 0;
   tuce_2 = 0;
   psi_2 = 0;
   output;

   /*-- second choice --*/
   choice1 = 0;
   choice2 = 1;
   decision = (grade = 1);
   gpa_2 = gpa;
   tuce_2 = tuce;
   psi_2 = psi;
   output;
run;

The first 10 observations are displayed in Output 23.1.1. The variables related to grade=0 are omitted since these are not used for binary choice model estimation.

Output 23.1.1: Converted Binary Data

iddecisionchoice2gpa_2tuce_2psi_2
1100.0000
1012.66200
2100.0000
2012.89220
3100.0000
3013.28240
4100.0000
4012.92120
5000.0000
5114.00210


Consider the choice probability of the conditional logit model for binary choice:

upper P Subscript i Baseline left-parenthesis j right-parenthesis equals StartFraction exp left-parenthesis bold x prime Subscript i j Baseline bold-italic beta right-parenthesis Over sigma-summation Underscript k equals 1 Overscript 2 Endscripts exp left-parenthesis bold x prime Subscript i k Baseline bold-italic beta right-parenthesis EndFraction comma j equals 1 comma 2

The choice probability of the binary logit model is computed based on normalization. The preceding conditional logit model can be converted as

upper P Subscript i Baseline left-parenthesis 1 right-parenthesis equals StartFraction 1 Over 1 plus exp left-parenthesis left-parenthesis bold x Subscript i Baseline 2 Baseline minus bold x Subscript i Baseline 1 Baseline right-parenthesis prime bold-italic beta right-parenthesis EndFraction
upper P Subscript i Baseline left-parenthesis 2 right-parenthesis equals StartFraction exp left-parenthesis left-parenthesis bold x Subscript i Baseline 2 Baseline minus bold x Subscript i Baseline 1 Baseline right-parenthesis prime bold-italic beta right-parenthesis Over 1 plus exp left-parenthesis left-parenthesis bold x Subscript i Baseline 2 Baseline minus bold x Subscript i Baseline 1 Baseline right-parenthesis prime bold-italic beta right-parenthesis EndFraction

Therefore, you can interpret the binary choice data as the difference between the first and second choice characteristics. In the following statements, it is assumed that bold x Subscript i Baseline 1 Baseline equals bold 0. The binary logit model is estimated and displayed in Output 23.1.2.

/*-- Conditional Logit --*/
proc mdc data=smdata1;
   model decision = choice2 gpa_2 tuce_2 psi_2 /
            type=clogit
            nchoice=2
            covest=hess;
   id id;
run;

Output 23.1.2: Binary Logit Estimates

The MDC Procedure
 
Conditional Logit Estimates

Parameter Estimates
ParameterDFEstimateStandard
Error
t ValueApprox
Pr > |t|
choice21-13.02134.9313-2.640.0083
gpa_212.82611.26292.240.0252
tuce_210.09520.14160.670.5014
psi_212.37871.06462.230.0255


Consider the choice probability of the multinomial probit model:

upper P Subscript i Baseline left-parenthesis j right-parenthesis equals upper P left-bracket epsilon Subscript i Baseline 1 Baseline minus epsilon Subscript i j Baseline less-than left-parenthesis bold x Subscript i j Baseline minus bold x Subscript i Baseline 1 Baseline right-parenthesis prime bold-italic beta comma ellipsis comma epsilon Subscript i upper J Baseline minus epsilon Subscript i j Baseline less-than left-parenthesis bold x Subscript i j Baseline minus bold x Subscript i upper J Baseline right-parenthesis prime bold-italic beta right-bracket

The probabilities of choice of the two alternatives can be written as

upper P Subscript i Baseline left-parenthesis 1 right-parenthesis equals upper P left-bracket epsilon Subscript i Baseline 2 Baseline minus epsilon Subscript i Baseline 1 Baseline less-than left-parenthesis bold x Subscript i Baseline 1 Baseline minus bold x Subscript i Baseline 2 Baseline right-parenthesis prime bold-italic beta right-bracket
upper P Subscript i Baseline left-parenthesis 2 right-parenthesis equals upper P left-bracket epsilon Subscript i Baseline 1 Baseline minus epsilon Subscript i Baseline 2 Baseline less-than left-parenthesis bold x Subscript i Baseline 2 Baseline minus bold x Subscript i Baseline 1 Baseline right-parenthesis prime bold-italic beta right-bracket

where StartBinomialOrMatrix epsilon Subscript i Baseline 1 Baseline Choose epsilon Subscript i Baseline 2 Baseline EndBinomialOrMatrix tilde upper N left-parenthesis bold 0 comma Start 2 By 2 Matrix 1st Row 1st Column sigma 1 squared 2nd Column sigma 12 2nd Row 1st Column sigma 12 2nd Column sigma 2 squared EndMatrix right-parenthesis. Assume that bold x Subscript i Baseline 1 Baseline equals 0 and sigma 12 equals 0. The binary probit model is estimated and displayed in Output 23.1.3. You do not get the same estimates as that of the usual binary probit model. The probabilities of choice in the binary probit model are

upper P Subscript i Baseline left-parenthesis 2 right-parenthesis equals upper P left-bracket epsilon Subscript i Baseline less-than bold x prime Subscript i Baseline bold-italic beta right-bracket
upper P Subscript i Baseline left-parenthesis 1 right-parenthesis equals 1 minus upper P left-bracket epsilon Subscript i Baseline less-than bold x prime Subscript i Baseline bold-italic beta right-bracket

where epsilon Subscript i Baseline tilde upper N left-parenthesis 0 comma 1 right-parenthesis. However, the multinomial probit model has the error variance Var left-parenthesis epsilon Subscript i Baseline 2 Baseline minus epsilon Subscript i Baseline 1 Baseline right-parenthesis equals sigma 1 squared plus sigma 2 squared if epsilon Subscript i Baseline 1 and epsilon Subscript i Baseline 2 are independent (sigma 12 equals 0). In the following statements, unit variance restrictions are imposed on choices 1 and 2 (sigma 1 squared equals sigma 2 squared equals 1). Therefore, the usual binary probit estimates (and standard errors) can be obtained by multiplying the multinomial probit estimates (and standard errors) in Output 23.1.3 by 1 slash StartRoot 2 EndRoot.

/*-- Multinomial Probit --*/
proc mdc data=smdata1;
   model decision = choice2 gpa_2 tuce_2 psi_2 /
            type=mprobit
            nchoice=2
            covest=hess
            unitvariance=(1 2);
   id id;
run;

Output 23.1.3: Binary Probit Estimates

The MDC Procedure
 
Multinomial Probit Estimates

Parameter Estimates
ParameterDFEstimateStandard
Error
t ValueApprox
Pr > |t|
choice21-10.53923.5956-2.930.0034
gpa_212.29920.98132.340.0191
tuce_210.07320.11860.620.5375
psi_212.01710.84152.400.0165


Last updated: June 19, 2025