BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
GKati
Pyrite | Level 9

Hello, 

 

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;

proc logistic 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.

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Damo
SAS Employee

Hi @GKati

 

I would say in your case YEAR is a DISCRETE variable.

And as pointed by the documentation, X MUST be a continous variable.:

Logistic.JPG

 

 

Hope that helps.


Cheers,
Damo

View solution in original post

1 REPLY 1
Damo
SAS Employee

Hi @GKati

 

I would say in your case YEAR is a DISCRETE variable.

And as pointed by the documentation, X MUST be a continous variable.:

Logistic.JPG

 

 

Hope that helps.


Cheers,
Damo

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is ANOVA?

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.

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