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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"durations": "<durations>",
"events": "<events>"
},
"name": "kaplan_meier"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| events | Yes | ||
| groups | No | ||
| durations | Yes |