BookmarkSubscribeRSS Feed
xcai5591
Calcite | Level 5

I am trying to use SAS PROC ADAPTIVEREG to do a variable selection and search for optimal knot position for spline transformation. One question that I encounter is how to, if possible, restrict the maximum number of knots for each individual variable. For example, I am doing a logistic regression with the response variable y and 10 predictors (x1 to x2). In the search, I would like to put a restriction that at most 2 interior knots can be used for x1. I know how to set the maximum number of basis functions for all variables via MAXBASis= option in MODEL statement. But not clear on how to do it for the individual variables.

 

Question: Is there a way to do it? If so, how to do it.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 0 replies
  • 620 views
  • 0 likes
  • 1 in conversation