Hello,
I have a dataset with a variable I made called CVD which has 0 or 1 as options only in SAS9.4. This is technically my outcome of my analysis but as a way to display the data I would like to make two boxplots of the exposure values (il6) by CVD value. So I would like one boxplot to be the il6 values for CVD=0 and one for CVD=1. I thought to do this I would just create a copy of my dataset, sort it by CVD, and then use the boxplot function, below:
data stats.adjusted4;
set stats.adjusted3;
run;
proc sort stats.adjusted4;
by descending CVD;
run;
proc boxplot data=stats.adjusted4;
plot log_il6*CVD/ cboxes=black;
run;
However, when I ran the proc sort it gave me this error message and I can't figure out what it wants me to do:
please update the code to below, to use 'data='
proc sort data=stats.adjusted4;
by descending CVD;
run;
please update the code to below, to use 'data='
proc sort data=stats.adjusted4;
by descending CVD;
run;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.