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