BookmarkSubscribeRSS Feed
mattteale
Fluorite | Level 6

Hi,

 

I am going through an example where I want to model a situation where people are asked to choose between travaling by auto, plane or public transit. My covariates contain data on the individual like age as well as alternative specific variables like time taken to travel by auto, plane and public transit. I want to run a mixed model that incoporates both types of covariates. If there are j invidiauls in my dataset is it possible to fed my dataset back into the model and generate the probability of the jth person choosing between auto, plane and transit modes of transport?

 

Thanks in advance 

 

1 REPLY 1
Rick_SAS
SAS Super FREQ

If I understand your question correctly, I think you can use the OUTPUT statement in PROC GLIMMIX and the PREDICTED keyword to get what you want. See this recent related post about visualizing fitted mixed models.  Assuming that you want to model the response as a multinomial proportion, you can specify DIST=MULT on the MODEL statement to fit a multinomial model. The Getting Started example describes a lot of the syntax, although the example is for a logistic model (two classes) instead of your three-class multinomial model.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 1 reply
  • 1198 views
  • 3 likes
  • 2 in conversation