Survival Analysis
Analyze time-to-event data, calculate survival probabilities, and compare groups using Kaplan-Meier and Cox proportional hazards models
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.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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
- Overview
- Key Concepts
- Common Models
- Implementation with Python
- Censoring Types
- Model Comparison
- Applications
- Deliverables
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.
