|
Chapter Contents |
Previous |
Next |
| The NPAR1WAY Procedure |
The following SAS statements create the data set React, which contains the observed reaction times for each stimulant. The variable Stim represents Stimulant 1 or 2. The variable Time contains the reaction times observed for subjects under the stimulant.
data React;
input Stim Time @@;
datalines;
1 1.94 1 1.94 1 2.92 1 2.92 1 2.92 1 2.92 1 3.27
1 3.27 1 3.27 1 3.27 1 3.70 1 3.70 1 3.74
2 3.27 2 3.27 2 3.27 2 3.70 2 3.70 2 3.74
;
PROC NPAR1WAY tests the null hypothesis that there is no difference between the effects of the two stimulants against an alternative hypothesis that stimulant 1 has smaller reaction times than stimulant 2. The WILCOXON option specifies that Wilcoxon scores are to be used. The CLASS statement specifies that the variable Stim determines the classes. The VAR statement identifies Time as the response variable. The EXACT option requests the exact p-values. Since the sample size is small, the normal approximation may not be completely accurate, and it is appropriate to compute the exact test.
proc npar1way wilcoxon data=React;
class Stim;
var Time;
exact;
run;
Output 47.2.1: Results of the Wilcoxon Two-Sample Test
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.