Hi Reeza, Thanks for your help with this. However, I still have yet to figure out how to make the sample size for each time point appear on the plot. I am using a longitudinal dataset over 4 years. The exposure is a binary variable measured at baseline and the outcome is continuous. sgplot didn't seem to work. I am using the following code, but it doesn't seem to take: goptions reset = all ; axis1 order =(0 to 4 by 1) label= (a=0 'Year') minor=none; axis2 order = (4.5 to 4.6 by 0.1) label = (a=95 'Mean Scores') minor=none ; symbol1 interpol=std2mjt v=none color=blue r=1; symbol2 interpol=std2mjt v=none color=red r=1; symbol3 v=dot i=none pointlabel=(position=top j=l "#ratio"); proc gplot data=means1; plot estimate*year=ratio; run; quit; any ideas?
... View more