TREND Subcommand (KM command)

TREND specifies that there is a trend across factor levels. This information is used when computing the tests for equality of survival functions specified on the TEST subcommand.

  • The minimum specification is the subcommand keyword by itself.
  • If TREND is specified but COMPARE is not, KM performs the default log rank test with the trend metric for an OVERALL POOLED comparison.
  • If the metric specified on TREND is longer than required by the factor levels, KM displays a warning and ignores extra values.

Example

KM LENGTH BY SEXRACE
 /STATUS=EMPLOY EVENT (1) LOST (3,5 THRU 8)
 /STRATA=LOCATION
 /TREND.
  • TREND is specified by itself. KM uses the default metric. Since SEXRACE has four levels, the default is (–3, –1, 1, 3).
  • Even though no TEST or COMPARE subcommand is specified, KM performs the default log rank test with the trend metric and does a default OVERALL POOLED comparison.