BookmarkSubscribeRSS Feed
Demographer
Pyrite | Level 9

Hello,

Is is possible to perform a mixed logit with a weight statement? The procedure I know to perform mixed logit models is proc MDC with the option type=mixedlogit, which doesn't support the weight statement. Otherwise, I think the estimated parameters will be biaised, because the weight of the individual in my database varies from 0.8 to 10.3.

3 REPLIES 3
SteveDenham
Jade | Level 19

This is a shot in the dark.  Try looking at PROC LOGISTIC or PROC SURVEYLOGISTIC.  Both support a WEIGHT statement, but it needs to be considered carefully.  PROC GLIMMIX also supports a WEIGHT statement, and a weight= option in the RANDOM statement.

Steve Denham

Demographer
Pyrite | Level 9

Unfortunately, for a mixed logit model, we have to use the STRATA statement. Thus, the weight statement is not supported neither with PROC LOGISTIC.

GLIMMIX and SURVEYLOGISTIC don't work on my SAS version. I'll try them later.

SteveDenham
Jade | Level 19

In particular, you would probably need access to SAS/STAT 13.2 or higher for what I was looking at for GLIMMIX.  In the Details part of the documentation, there is a section titled 'Pseudo-likelihood Estimation for Weighted Multilevel Models' where a three level model, with different weights at each level is fit.  This may very well parallel what you are doing.

One thing I did notice in PROC MDC is that the residual error is fit as having a Gumbel distribution for TYPE=MIXEDLOGIT.  I don't believe that is available in the procs I recommended, although an alternative link function could be written for this distribution in GLIMMIX.

Steve Denham

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 1215 views
  • 3 likes
  • 2 in conversation