Data sleeping_pill; input subject pill placebo; lines; 1 7.3 6.8 2 8.5 7.9 3 6.4 6.0 4 9.0 8.4 5 6.9 6.5 RUN; proc ttest; paired pill*placebo; title 'paired t-test for the difference between the two population means'; run; data compare; set sleeping_pill; difference=pill-placebo; run; proc ttest data=compare; var difference; title 'An alternative paired t-test: t-test on the differences'; proc univariate data=compare; var difference; title 'Univariate test to get signed rank test and sign test'; run;