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"

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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