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.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 333 views
  • 0 likes
  • 3 in conversation