It looks like sequence means 1 and 2 are being plotted as well as responseMeans * Period = sequence. How do I remove that dotted line and create a legend inside the plot?
data a;
input subject sequence $ period regimen $ result;
cards;
1 AB 1 A 15
1 AB 2 B 10
2 AB 1 A 14
2 AB 2 B 11
6 BA 1 B 11
6 BA 2 A 15
7 BA 1 B 10
7 BA 2 A 14
;
proc means data=a N mean stderr stddev lclm uclm NDEC=2 alpha=.05;
class sequence;
var result;
output out=MeanOut mean=Mean;
run;
proc means data=a N mean stderr stddev lclm uclm NDEC=2 alpha=.05;
class sequence period;
var result;
output out=MeanOut mean=Mean;
run;
title2 "Presummarized Data";
proc sgplot data=Meanout;
series x=period y=Mean / group=sequence;
scatter x=period y=Mean / group=sequence;
run;
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.
Find more tutorials on the SAS Users YouTube channel.