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;
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?
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.
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.
Ready to level-up your skills? Choose your own adventure.