BookmarkSubscribeRSS Feed
ayosas
Fluorite | Level 6
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 

1 REPLY 1
ballardw
Super User

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.

Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 633 views
  • 0 likes
  • 2 in conversation