Agent skill · Data & Analytics

bio-machine-learning-survival-analysis

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.

BioTender-maxgithub.com/BioTender-maxGitHub ↗
claude-codeships scriptsNOASSERTION
Install
npx skills add BioTender-max/awesome-bio-agent-skills --skill bioskills__machine-learning__survival-analysis --agent claude-code

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

Facts
Files in the skill folder: 4
SKILL.md size: 7 KB
Bundled scripts: yes
Path: skills/bioskills/bioskills__machine-learning__survival-analysis/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 135
Language: Python

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

From the SKILL.md

## Version Compatibility Reference examples tested with: matplotlib 3.8+, pandas 2.2+ Before using code patterns, verify installed versions match. If versions differ: - Python: `pip show <package>` then `help(module.function)` to check signatures If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying. # Survival Prediction with lifelines **"Analyze patient survival data"** → Estimate survival curves (Kaplan-Meier), compare groups (log-rank test), and model time-to-event outcomes with Cox proportional hazards regression. - Python: `lifelines.KaplanMeierFitter()`, `lifelines.CoxPHFitter()` ## Kaplan-Meier Curves **Goal:** Estimate and visualize the survival probability function from time-to-event data. **Approach:** Fit a nonparametric Kaplan-Meier estimator to censored survival data and plot the step function. ```python from lifelines import KaplanMeierFitter import matplotlib.pyplot as plt kmf = KaplanMeierFitter() # T: time to event or censoring # E: event indicator (1=event occurred, 0=censored) kmf.fit(T, event_observed=E) # Plot survival curve kmf.plot_survival_function() plt.

What's inside
Steps it walks through
  1. Version Compatibility
  2. Kaplan-Meier Curves
  3. Compare Groups with Log-Rank Test
  4. Cox Proportional Hazards Regression
  5. Multivariate Cox Model
  6. Predict Risk Scores
  7. Check Proportional Hazards Assumption
  8. Survival at Specific Time
  9. Feature Selection for Survival
  10. Related Skills
Ships with 3 files
  • examples/cox_regression.py
  • examples/kaplan_meier.py
  • usage-guide.md
More from awesome-bio-agent-skills
All skills →
About this skill
What does the bio-machine-learning-survival-analysis skill do?

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.

How do I install it?

Run `npx skills add BioTender-max/awesome-bio-agent-skills --skill bioskills__machine-learning__survival-analysis --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 BioTender-max/awesome-bio-agent-skills, a repository with 135 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