util_survival
Kaplan-Meier survival + log-rank — Offline survival / time-to-event analysis (churn, time to failure, time to conversion, clinical follow-up). times= comma list where a trailing + marks a censored observation (e.g. 12+), or pass events= 1/0 flags; groups=NAME:t1,t2+,..;NAME2:.. (2-10 groups) instead of times= to compare curves. Returns the Kaplan-Meier table with Greenwood SE and log(-log) confidence bands, median + CI, quartiles, restricted mean survival time (tau= default = shortest group max time), survival at= chosen times, and for groups the log-rank chi-square, p-value, observed/expected and (2 groups) Peto hazard ratio with CI. confidence=80|90|95|99. Price: $0.003 USDC (Base, via x402).
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": {
"times": "<times>"
},
"name": "util_survival"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| times | Yes | 6,6,6,7,10,13,16,22,23,6+,9+,10+,11+,17+,19+,20+,25+,32+,32+,34+,35+ |