Statistical Procedures

Programming the statistical procedures from SAS
BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
RobertF
Obsidian | Level 7

I'm building a predictive model that predicts future hospital length of stay. The dataset is episode level, including multiple episodes for many of the members. I'd like to use a penalized GLM (such as a lasso) while at the same time including a member-level random effect.

 

I know proc glmselect does not have a "random" statement. Is there a feature I'm missing or a workaround that allows random effects to be included in a predictive model?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User

Answer is no.

But you could use interact term to simulate RANDOM effect.

 

model y=x1 x2 x1*x2  x1*x1 x2*x2 ;

View solution in original post

2 REPLIES 2
Ksharp
Super User

Answer is no.

But you could use interact term to simulate RANDOM effect.

 

model y=x1 x2 x1*x2  x1*x1 x2*x2 ;

RobertF
Obsidian | Level 7

Thank you Ksharp - I could treat the Member ID # as a fixed effect and model it's interactions, but wouldn't that mean having thousands of Member ID # dummy variables (and using up lots of degrees of freedom)?

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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
  • 2 replies
  • 2028 views
  • 1 like
  • 2 in conversation