MDC Procedure

Parameter Heterogeneity: Mixed Logit

One way of modeling unobserved heterogeneity across individuals in their sensitivity to observed exogenous variables is to use the mixed logit model with a random parameters or random coefficients specification. The probability of choosing alternative j is written as

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 upper J Endscripts exp left-parenthesis bold x prime Subscript i k Baseline bold-italic beta right-parenthesis EndFraction

where bold-italic beta is a vector of coefficients that varies across individuals and bold x Subscript i j is a vector of exogenous attributes.

For example, you can specify the distribution of the parameter beta to be the normal distribution.

The mixed logit model uses a Monte Carlo simulation method to estimate the probabilities of choice. There are two simulation methods available. If the RANDNUM=PSEUDO option is specified in the MODEL statement, pseudo-random numbers are generated; if the RANDNUM=HALTON option is specified, Halton quasi-random sequences are used. The default value is RANDNUM=HALTON.

You can estimate the model with normally distributed random coefficients of ttime with the following SAS statements:

/*-- mixed logit estimation --*/
proc mdc data=newdata type=mixedlogit;
   model decision = ttime /
            nchoice=3
            mixed=(normalparm=ttime);
   id pid;
run;

Let beta Superscript m and beta Superscript s be mean and scale parameters, respectively, for the random coefficient, beta. The relevant utility function is

upper U Subscript i j Baseline equals sans-serif t sans-serif t sans-serif i sans-serif m sans-serif e Subscript i j Baseline beta plus epsilon Subscript i j

where beta equals beta Superscript m Baseline plus beta Superscript s Baseline eta (beta Superscript m and beta Superscript s are fixed mean and scale parameters, respectively). The stochastic component, eta, is assumed to be standard normal since the NORMALPARM= option is given. Alternatively, the UNIFORMPARM= or LOGNORMALPARM= option can be specified. The LOGNORMALPARM= option is useful when nonnegative parameters are being estimated. The NORMALPARM=, UNIFORMPARM=, and LOGNORMALPARM= variables must be included in the right-hand side of the MODEL statement. For more information, see the section Mixed Logit Model. To estimate a mixed logit model by using the transportation mode choice data, the MDC procedure requires the MIXED= option for random components. Results of the mixed logit estimation are displayed in Figure 21.

Figure 21: Mixed Logit Model Parameter Estimates

The MDC Procedure
 
Mixed Multinomial Logit Estimates

Parameter Estimates
ParameterDFEstimateStandard
Error
t ValueApprox
Pr > |t|
ttime_M1-0.53420.2184-2.450.0144
ttime_S10.28430.19111.490.1368


Note that the parameter ttime_M corresponds to the constant mean parameter beta Superscript m and the parameter ttime_S corresponds to the constant scale parameter beta Superscript s of the random coefficient beta.

Last updated: June 19, 2025