Agent skill · Data & Analytics

Survival Analysis

Analyze time-to-event data, calculate survival probabilities, and compare groups using Kaplan-Meier and Cox proportional hazards models

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill survival-analysis-aj-geddes-useful-ai-prompts-2 --agent claude-code

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

Facts
Files in the skill folder: 2
SKILL.md size: 9 KB
Bundled scripts: none
Path: skills/analysis/survival-analysis-aj-geddes-useful-ai-prompts-2/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 ## Overview Survival analysis studies time until an event occurs, handling censored data where events haven't happened for some subjects, enabling prediction of lifetimes and risk assessment. ## Key Concepts - **Survival Time**: Time until event - **Censoring**: Event not observed (subject dropped out) - **Hazard**: Instantaneous risk at time t - **Survival Curve**: Probability of surviving past time t - **Hazard Ratio**: Relative risk between groups ## Common Models - **Kaplan-Meier**: Non-parametric survival curves - **Cox Proportional Hazards**: Semi-parametric regression - **Weibull/Exponential**: Parametric models - **Log-rank Test**: Comparing survival curves - **Competing Risks**: Multiple event types ## Implementation with Python ```python import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns from lifelines import KaplanMeierFitter, CoxPHFitter, WeibullAFTFitter from lifelines.statistics import logrank_test import warnings warnings.filterwarnings('ignore') # Generate sample survival data np.random.seed(42) n_patients = 200 # Time to event (in months) event_times = np.random.exponential(scale=24, size=n_patients) # C

What's inside
Steps it walks through
  1. Overview
  2. Key Concepts
  3. Common Models
  4. Implementation with Python
  5. Censoring Types
  6. Model Comparison
  7. Applications
  8. Deliverables
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the Survival Analysis skill do?

Analyze time-to-event data, calculate survival probabilities, and compare groups using Kaplan-Meier and Cox proportional hazards models

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill survival-analysis-aj-geddes-useful-ai-prompts-2 --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