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

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.

YouTube LinkedIn

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
  • 762 views
  • 0 likes
  • 3 in conversation