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;
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.