bio-machine-learning-survival-analysis

Analyze time-to-event data with Kaplan-Meier, log-rank, and Cox models using lifelines.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/stellaromics/fast-bioinfo --skill bio-machine-learning-survival-analysis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bio-machine-learning-survival-analysis
Source: https://github.com/stellaromics/fast-bioinfo/tree/main/.claude/agents/spatial-analysis/skills/bio-machine-learning-survival-analysis
Command: npx skills add https://github.com/stellaromics/fast-bioinfo --skill bio-machine-learning-survival-analysis

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Analyzes time-to-event data using Kaplan-Meier curves, log-rank tests, and Cox proportional hazards regression with lifelines. Builds survival models from clinical and omics features. Use when predicting patient survival or modeling time-to-event outcomes.

Core Features & Use Cases

  • Kaplan-Meier estimation and plotting for survival curves across groups.
  • Log-rank comparison to assess differences between cohorts.
  • Cox proportional hazards regression for univariate and multivariate risk modeling.
  • Risk scoring and interpretation of hazard ratios with C-index checks.
  • Feature selection for survival analyses in high-dimensional datasets.

Quick Start

Load your time-to-event data and fit a Kaplan-Meier curve, then build a Cox model to estimate hazard ratios.

Frequently Asked Questions about bio-machine-learning-survival-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform Cox proportional hazards regression using Python lifelines?

Cox proportional hazards regression with Python lifelines models time-to-event data to estimate hazard ratios and confidence intervals. The Skill fits univariate and multivariate models, outputs risk scores, and provides concordance index and proportional hazards diagnostics.

What is the best way to compare survival curves between cohorts with a log-rank test?

Log-rank comparison assesses statistical differences between cohort survival curves. The Skill calculates log-rank tests alongside Kaplan-Meier estimation, enabling you to plot survival curves across groups and determine if significant outcome differences exist.

Can I run Kaplan-Meier estimation and plot survival curves for clinical datasets?

Kaplan-Meier estimation and plotting for clinical datasets is supported. The Skill generates survival curves across patient groups, calculates survival probabilities over time, and applies to clinical and omics datasets requiring time-to-event outcome visualization.

Does this survival analysis approach work for high-dimensional omics feature selection?

Univariate and multivariate feature selection for survival analyses in high-dimensional datasets is supported. The Skill processes clinical and omics features, performs Cox regression risk scoring, and outputs hazard ratios to identify significant predictors.

How do I check the proportional hazards assumption and evaluate Cox model fit?

Proportional hazards assumption checking and model fit evaluation use concordance index and PH-check diagnostics. The Skill outputs C-index values and diagnostic tests to validate Cox model assumptions and quantify predictive accuracy.