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 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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