BookmarkSubscribeRSS Feed
lsak
Calcite | Level 5

Hello,

 

I get this error as soon as I include the plots line. When I take it out it runs but I really want to have a graph for this. 

 

 

ods graphics on;
proc causaltrt data=thesis covdiffps;
class RACE_ETHNICITY_4CAT numeric_urban HMI070 /desc;
psmodel numeric_urban = age_consent HMI070 RACE_ETHNICITY_4CAT;
/plots=(PSDist pscovden(effects(numeric_urban age_consent)) );
model numeric_mdro;
run;

 

 

 

2 REPLIES 2
Tom
Super User Tom
Super User

SAS normally using / to indicate the start of options on a statement.  So having / as the first character in a statement makes no sense.  Is the issue just that you have an extra semicolon before the /plots option?

ballardw
Super User

ods graphics on;
proc causaltrt data=thesis covdiffps;
class RACE_ETHNICITY_4CAT numeric_urban HMI070 /desc;
psmodel numeric_urban = age_consent HMI070 RACE_ETHNICITY_4CAT;
/plots=(PSDist pscovden(effects(numeric_urban age_consent)) );
model numeric_mdro;
run;

 

The semicolon on the PSMODEL statement ends the statement. So the Plots, which should be an option for Psmodel don't have a statement to belong with.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 2 replies
  • 817 views
  • 0 likes
  • 3 in conversation