KM
Kaplan-Meier survival analysis: survival curves, mean and median survival, and log-rank, Breslow and Tarone-Ware comparisons.
Syntax
Section titled “Syntax”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].Synopsis
Section titled “Synopsis”| 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 |
Specifications
Section titled “Specifications”- 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
Examples
Section titled “Examples”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.
Related
Section titled “Related”Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.