Beginning in SAS 9.1, k-sample stratified tests are available with the GROUP= option in the STRATA statement. Stratified tests are discussed in "Comparison of Two or More Groups of Survival Data: Stratified Tests" in the Details: Computational Formulas section of the LIFETEST documentation. However, the null hypothesis for stratified tests is not adequately stated. It is clarified below.
The following statements produce a stratified, k-sample, log-rank test of a GROUP= variable in which the STRATA variable has m levels. The NOTABLE option prevents estimating a survival curve for each level of the STRATA variable which would not be indicative of the curves to be tested here.
proc lifetest data=<data-set-name> notable;
time duration*censor(1);
strata <m-level-variable> / group=<k-level-variable> test=(logrank);
run;
The statements above provide a joint test of a null hypothesis which states that the k survival curves in stratum 1 are the same, and that the k survival curves in stratum 2 are the same, ... , and that the k survival curves in stratum m are the same. That is, the k survival curves may differ across the strata but not within strata under this hypothesis. The hypothesis can be equivalently stated in terms of hazard functions. The null hypothesis is not satisfied if at least one pair of hazard (or survival) functions differs within some stratum. As shown in Klein & Moeschberger (1997, Section 7.5), the null and alternative hypotheses in terms of the hazard functions h(t) or the survival functions S(t) are:
H0: h1s(t) = h2s(t) = ... = hk s(t) , or equivalently
H0: S1s(t) = S2s(t) = ... = Sk s(t) , for strata s=1, 2, ... , m and groups i=1, 2, ... , k
versus
H1: his(t) ≠ hjs(t) , or equivalently
H1: Sis(t) ≠ Sjs(t) , for some groups i and j in some stratum s
See the References section of the LIFETEST documentation for citation of the Klein & Moeschberger (1977) reference.
Operating System and Release Information
| SAS System | SAS/STAT | Microsoft Windows Server 2008 | | |
| Microsoft Windows Server 2003 for x64 | | |
| Microsoft Windows Server 2003 Standard Edition | | |
| Microsoft Windows Server 2003 Enterprise Edition | | |
| Microsoft Windows Server 2003 Datacenter Edition | | |
| Microsoft Windows NT Workstation | | |
| Microsoft Windows 2000 Professional | | |
| Microsoft Windows 2000 Server | | |
| Microsoft Windows 2000 Datacenter Server | | |
| Microsoft Windows 2000 Advanced Server | | |
| OS/2 | | |
| Microsoft Windows 95/98 | | |
| Microsoft® Windows® for x64 | | |
| Microsoft Windows XP 64-bit Edition | | |
| Microsoft Windows Server 2003 Enterprise 64-bit Edition | | |
| Microsoft Windows Server 2003 Datacenter 64-bit Edition | | |
| Microsoft® Windows® for 64-Bit Itanium-based Systems | | |
| OpenVMS VAX | | |
| z/OS | | |
| Microsoft Windows Server 2008 for x64 | | |
| Microsoft Windows XP Professional | | |
| Windows 7 Enterprise 32 bit | | |
| Windows 7 Enterprise x64 | | |
| Windows 7 Home Premium 32 bit | | |
| Windows 7 Home Premium x64 | | |
| Windows 7 Professional 32 bit | | |
| Windows 7 Professional x64 | | |
| Windows 7 Ultimate 32 bit | | |
| Windows 7 Ultimate x64 | | |
| Windows Millennium Edition (Me) | | |
| Windows Vista | | |
| Windows Vista for x64 | | |
| 64-bit Enabled AIX | | |
| 64-bit Enabled HP-UX | | |
| 64-bit Enabled Solaris | | |
| ABI+ for Intel Architecture | | |
| AIX | | |
| HP-UX | | |
| HP-UX IPF | | |
| IRIX | | |
| Linux | | |
| Linux for x64 | | |
| Linux on Itanium | | |
| OpenVMS Alpha | | |
| OpenVMS on HP Integrity | | |
| Solaris | | |
| Solaris for x64 | | |
| Tru64 UNIX | | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.