I'm still struggling with the EffectPlot procedure. I would like to graph the probability of getting treated (y-axis) per year (x-axis) with 95% confidence interval.
ODS GRAPHICS ON;
proclogistic data=data descending;
class year;
model treated=year;
effectplot slicefit(x=year)/noobs;
run;
ODS GRAPHICS Off;
I get the following error message:
ERROR: The X= variable must be a continuous variable used in the model.
I would say in your case YEAR is a DISCRETE variable.
And as pointed by the documentation, X MUST be a continous variable.:
Hope that helps.
Cheers, Damo
The 2025 SAS Hackathon Kicks Off on June 11!
Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.
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.