BookmarkSubscribeRSS Feed
Calcite | Level 5



I am building a predictive response model using proc logistic.  However, due to nonlinearity between predictors and the response, I tried to use PROC ADAPTIVEREG for regression spline basis functions to accommodate for non-linearity.


I also tried PROC GAMPL to get splines but I didn't know how to get the scoring code that will do the transformation from the procedure's output.   


I want to use the spline transformation to score my future new data and need the scoring code with transformation.


I think you are correct: PROC GAMPL does not support a STORE or CODE statement.  I'm guessing the reason is that the nonparametric model is extremely complicated. I don't know the details, but for some tree-based nonparametric procedures you can't score the data unless you have a tree that contains the original (training) data.


The only way I've found is to score a GAMPL model is to use the "missing value trick": append the scoring data set to the end of the training data, using a missing value for the response of the scoring data. A discussion and example is available in the third section of the article "How to create a sliced fit plot in SAS."

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 3 in conversation