proc logistic data=compas1;
effect PRIORspl=spline(priors_count / degree=2);
model two_year_recid (event='0') = PRIORspl/ rsq lackfit;
id compas_id priors_count;
output out=one predicted=splpred
reschi=splres;
effectplot fit (x=priors_count);
title1 'Continuous BP with Spline';
run;My code is as above. The spline option doesn't turn blue as it's supposed to
As long as the code runs don't spend any time worrying about editor highlighting.
If you run code and get an error there, then you may have to look to your version of SAS vs the documentation to determine if the option is actually available in your particular install.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Get started using SAS Studio to write, run and debug your SAS programs.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.