Agent skill

survival-analysis-km

Kaplan-Meier survival analysis with log-rank tests, Cox regression, and publication-ready survival curves for clinical and biological research.

majiayu000534★ · 1 repos on radarProfile →
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill survival-analysis-km --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 6 KB
Bundled scripts: none
Path: skills/analysis/survival-analysis-km/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Survival Analysis (Kaplan-Meier) Kaplan-Meier survival analysis tool for clinical and biological research. Generates publication-ready survival curves with statistical tests and hazard ratios. ## Quick Check ```bash python -m py_compile scripts/main.py pip install lifelines && python scripts/main.py --help ``` > **Note:** The `lifelines` package is required. Install it before running: `pip install lifelines` ## When to Use - Overall survival (OS) or progression-free survival (PFS) analysis - Comparing survival between treatment groups - Generating KM curves for clinical manuscripts - Cox proportional hazards regression with HR and 95% CI ## Usage ```bash python scripts/main.py \ --input clinical_data.csv \ --time overall_survival_months \ --event death \ --group treatment_arm \ --output ./results/ \ --risk-table ``` ## Parameters | Parameter | Required | Default | Description | |-----------|----------|---------|-------------| | `--input` | Yes | — | Input CSV file path | | `--time` | Yes | — | Column name for survival time | | `--event` | Yes | — | Event indicator column (1=event, 0=censored) | | `--group` | No | — | Grouping variable for stratification | | `--output` | Yes | — |

What's inside
Steps it walks through
  1. Quick Check
  2. When to Use
  3. Usage
  4. Parameters
  5. Input Format
  6. Output Files
  7. Workflow
  8. Fallback Template
  9. Statistical Methods
  10. Output Requirements
  11. Error Handling
  12. Input Validation
  13. Response Template
  14. Prerequisites
Ships with 1 file
  • metadata.json
Commands it runs
python -m py_compile scripts/main.py
pip install lifelines && python scripts/main.py --help
python scripts/main.py \
pip install -r requirements.txt
More from claude-skill-registry
All skills →
About this skill
What does the survival-analysis-km skill do?

Kaplan-Meier survival analysis with log-rank tests, Cox regression, and publication-ready survival curves for clinical and biological research.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill survival-analysis-km --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going