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"
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.