COMPARE Subcommand (KM command)
COMPARE compares
the survival distributions for the different levels of the factor.
Each of the keywords specifies a different method of comparison.
-
COMPAREis valid only when a factor variable is specified. If no factor variable is specified,KMissues a warning andCOMPAREis not executed. -
COMPAREuses whatever tests are specified on theTESTsubcommand. If noTESTsubcommand is specified, the log rank test is used. - If
COMPAREis not specified, the default isOVERALLandPOOLED. All factor levels are compared across strata in a single test. The test statistics are displayed after the summary table at the end of output. - Multiple
COMPAREsubcommands can be specified to request different comparisons.OVERALL. Compare all factor levels in a single test.
OVERALL, together withPOOLED, is the default whenCOMPAREis not specified.PAIRWISE. Compare each pair of factor levels.
KMcompares all distinct pairs of factor levels.POOLED. Pool the test statistics across all strata. The test statistics are displayed after the summary table for all strata.
POOLED, together withOVERALL, is the default whenCOMPAREis not specified.STRATA. Compare the factor levels for each stratum. The test statistics are displayed for each stratum separately.
- If a factor variable has different levels across
strata, you cannot request a pooled comparison. If you specify
POOLEDonCOMPARE,KMdisplays a warning and ignores the request.
Example
KM LENGTH BY SEXRACE
/STATUS=EMPLOY EVENT (1) LOST (3,5 THRU 8)
/STRATA=LOCATION
/TEST = BRESLOW
/COMPARE = PAIRWISE.
-
TESTspecifies the Breslow test. -
COMPAREuses the Breslow test statistic to compare all distinct pairs of SEXRACE values and pools the test results over all strata defined by LOCATION. - Test statistics are displayed at the end of output for all strata.