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.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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