Chapter Contents |
Previous |
Next |
The NPAR1WAY Procedure |
The following SAS statements create the data set Mice, which contains the observed survival times for all the mice. The variable Trt denotes the treatment received by a mouse. The variable Days contains the number of days the mouse survived.
data Mice; input Trt $ Days @@; datalines; 1 1 1 1 1 3 1 3 1 4 2 3 2 4 2 4 2 4 2 15 3 4 3 4 3 10 3 10 3 26 ;
PROC NPAR1WAY tests the null hypothesis that there is no difference in the survival times among the three drugs against an alternative hypothesis of difference among the drugs. The SAVAGE option specifies that Savage scores are to be used. The variable Trt is the CLASS variable, and the VAR statement specifies that the variable Days is the response variable. The EXACT statement requests the exact test.
proc npar1way savage data=Mice; class Trt; var Days; exact; run;Output 47.3.1: Results of the Savage Multisample Test
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.