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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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