Skip to content

KM

Kaplan-Meier survival analysis: survival curves, mean and median survival, and log-rank, Breslow and Tarone-Ware comparisons.

KM time [BY factor] /STATUS=var(values | lo THRU hi)
[/STRATA=var] [/PRINT=TABLE MEAN NONE] [/PERCENTILES=25 50 75]
[/TEST=LOGRANK BRESLOW TARONE] [/COMPARE=OVERALL|PAIRWISE POOLED|STRATA]
[/PLOT=SURVIVAL LOGSURV HAZARD OMS] [/SAVE=SURVIVAL SE HAZARD CUMEVENT].
Kind Procedure (reads data, produces output)
Body main /SUBCOMMAND[=] …
Changes data yes, undoable
Subcommands /COMPARE, /ID, /MISSING, /PERCENTILES, /PLOT, /PRINT, /SAVE, /STATUS, /STRATA, /TEST
Menu Analyze ▸ Survival
Slot: Time 1–1 variable(s); levels: scale; types: numeric
Slot: Status 1–1 variable(s); levels: nominal, ordinal, scale; types: numeric
Slot: Factor 0–1 variable(s); levels: nominal, ordinal, scale; types: numeric, string
Slot: Strata 0–1 variable(s); levels: nominal, ordinal, scale; types: numeric, string
  • STATUS: the event indicator and the value(s) that mean the event happened; other values are censored
  • COMPARE: OVERALL tests all factor levels at once, PAIRWISE each pair; with /STRATA, POOLED (default) combines strata, STRATA tests within each
KM months BY plan /STATUS=churned(1) /PRINT=TABLE MEAN /TEST=LOGRANK /PLOT=SURVIVAL.
KM time BY arm /STATUS=status(1 THRU 2) /STRATA=site /TEST=LOGRANK BRESLOW /COMPARE=PAIRWISE POOLED.
  • Standard errors use Greenwood’s formula; the mean is restricted to the largest observed time when that time is censored.

SURVIVAL, COXREG


Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.