kaplan_meier
Estimate survival curves from durations and event indicators, optionally grouped, to compare time-to-event outcomes across cohorts.
Instructions
Estimate survival curves with the Kaplan-Meier product-limit method.
``durations`` and ``events`` may be inline lists or ``"@<path>"`` references.
``groups`` optionally supplies one group label per observation (inline list
or ``"@<path>"`` file); when given, a separate curve is returned per group.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| events | Yes | ||
| groups | No | ||
| durations | Yes |