options ls=78 ps=49 nocenter; data nitrofen; length treatment $8. ; input Control Nitrofen; /* read in data side-by-side but output them stacked */ treatment="control"; response=Control; output; treatment="Nitrofen"; response=Nitrofen; output; drop Control Nitrofen; datalines; 27 29 32 29 34 23 33 27 36 30 34 31 33 30 30 26 24 29 31 29 ; /* Proc ttest does both the separate and pooled two independent sample t-tests */ proc ttest; class treatment; var response; title "Analysis of Nitrofen Experiment"; run; /* The npar1way procedure implements a number of nonparameteric analyses for one-way classified data. Here we invoke the wilcoxon option to get the Wilcoxon rank sums test.*/ proc npar1way wilcoxon; class treatment; var response; title "Wilcoxon rank sum analysis of Nitrofen experiment"; run;