BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
fatemehkp
Calcite | Level 5

Hi,

 

How can I save the spline "spl" generated by code below? (Line three)

 

ods select ANOVA ParameterEstimates SplineKnots;
proc glmselect data=sashelp.cars;
effect spl = spline(weight / details naturalcubic basis=tpf(noint)
knotmethod=percentiles(5) );
model mpg_city = spl / selection=none; /* fit model by using spline effects */
output out=SplineOut predicted=Fit; /* output predicted values for graphing */
quit;

 

Thanks,

Fatemeh

1 ACCEPTED SOLUTION

Accepted Solutions
Rick_SAS
SAS Super FREQ

Use the OUTDESIGN= option on the PROC GLMSELECT statement. For details and an example, see the section "Write the spline basis functions to a SAS data set" in the article "Regression with restricted cubic splines in SAS"

View solution in original post

1 REPLY 1
Rick_SAS
SAS Super FREQ

Use the OUTDESIGN= option on the PROC GLMSELECT statement. For details and an example, see the section "Write the spline basis functions to a SAS data set" in the article "Regression with restricted cubic splines in SAS"

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
  • 1 reply
  • 1701 views
  • 1 like
  • 2 in conversation