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