survival-analysis-guide
Conduct Kaplan-Meier, Cox regression, and time-to-event analyses
npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill survival-analysis-guide --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 Guide A skill for conducting time-to-event analyses including Kaplan-Meier estimation, log-rank tests, and Cox proportional hazards regression. Covers censoring concepts, assumption checking, and reporting standards for clinical and social science research. ## Core Concepts ### What Is Survival Analysis? Survival analysis studies the time until an event of interest occurs. Despite the name, the "event" need not be death -- it can be any well-defined transition: ``` Medical: Time to disease recurrence, death, or recovery Engineering: Time to equipment failure Social: Time to job termination, divorce, or graduation Business: Time to customer churn or first purchase Ecology: Time to species extinction in a habitat ``` ### Censoring ``` Right censoring (most common): The event has not occurred by the end of the study period. Example: Patient is still alive at study end. The survival time is "at least T" -- we know T but not the true event time. Left censoring: The event occurred before the observation period began. Example: HIV infection detected, but seroconversion happened before testing. Interval censoring: The event occurred between two observation times. Exampl
- Core Concepts
- What Is Survival Analysis?
- Censoring
- Kaplan-Meier Estimation
- Computing the Survival Curve
- Using lifelines in Python
- Log-Rank Test
- Comparing Survival Between Groups
- Cox Proportional Hazards Regression
- Model Fitting
- Interpreting Hazard Ratios
- Checking the Proportional Hazards Assumption
- Reporting Standards
- STROBE-style Reporting for Survival Analyses
What does the survival-analysis-guide skill do?
Conduct Kaplan-Meier, Cox regression, and time-to-event analyses
How do I install it?
Run `npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill survival-analysis-guide --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 brycewang-stanford/Auto-Empirical-Research-Skills, a repository with 3,244 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.