BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
dschmidt
Fluorite | Level 6

Forgive me if a dumb question:

 

Can you penalize (L1 or L2 penalty) a subset of predictors in any SAS procedures?

 

I'm looking at:

2 categorical variables

1 group of non-mutually exclusive dummy variables (list of a few hundred medical conditions) 

 

Can I penalize the latter group of dummy variables without penalizing the categorical variables? 

1 ACCEPTED SOLUTION

Accepted Solutions
StatDave
SAS Super FREQ

NLMIXED is a procedure that can fit a wide variety of model and can be used to apply penalization including L1 (LASSO), L2 or a combination (elastic net) regularization. See this note which discusses and illustrates this. In particular, see Example 4 which shows how a subset of the model parameters can be penalized.

View solution in original post

2 REPLIES 2
StatDave
SAS Super FREQ

NLMIXED is a procedure that can fit a wide variety of model and can be used to apply penalization including L1 (LASSO), L2 or a combination (elastic net) regularization. See this note which discusses and illustrates this. In particular, see Example 4 which shows how a subset of the model parameters can be penalized.

dschmidt
Fluorite | Level 6
Thanks!

sas-innovate-white.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.

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
  • 696 views
  • 2 likes
  • 2 in conversation