BookmarkSubscribeRSS Feed
EricTsai
Calcite | Level 5

Hi,

 

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.

2 REPLIES 2
Rick_SAS
SAS Super FREQ

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."

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

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
  • 1775 views
  • 0 likes
  • 3 in conversation