scikit-survival

Fit Cox proportional hazards models to censored survival data with scikit-survival.

Updated May 17, 2026
One-click install
npx skills add https://github.com/galeep/plugin-place --skill scikit-survival-galeep
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scikit-survival
Source: https://github.com/galeep/plugin-place/tree/main/plugins/sci-data-analysis-viz/skills/scikit-survival
Command: npx skills add https://github.com/galeep/plugin-place --skill scikit-survival-galeep

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires scikit-survival, scikit-learn, scipy, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill simplifies survival analysis and time-to-event modeling by leveraging the scikit-survival library in Python. It is ideal for users who need to perform complex analyses with censored data.

Core Features & Use Cases

  • Survival Analysis: Offers a comprehensive set of tools for survival analysis, including Cox proportional hazards models, random survival forests, and survival support vector machines.
  • Time-to-Event Modeling: Allows for the modeling of the time to an event, considering factors like censoring and competing risks.
  • Use Case: Ideal for medical researchers analyzing patient survival data, where understanding the impact of various factors on survival times is crucial.

Quick Start

Use the scikit-survival skill to fit a Cox proportional hazards model to your survival data with the command: scikit-survival fit CoxPHSurvivalAnalysis data.csv

Frequently Asked Questions about scikit-survival

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

FAQPage Schema
How do I perform survival analysis with censored data in Python?

Survival analysis with censored data is performed using scikit-survival to model time-to-event outcomes. This Skill provides Cox proportional hazards models, random survival forests, and survival SVMs to handle right-censored clinical trial data directly.

Can I use random survival forests and survival SVMs for time-to-event modeling?

Yes, time-to-event modeling supports random survival forests and survival support vector machines alongside Cox models. These algorithms handle censored observations and competing risks to estimate patient survival times based on risk factors.

What's the best way to fit a Cox proportional hazards model to clinical trial data?

Fitting a Cox proportional hazards model is best done by loading your dataset and applying the scikit-survival library. You can quickly fit the model to your survival data using the provided scripts to analyze patient outcomes and risk factors.

Do I need scikit-learn and scipy installed to run scikit-survival models?

Yes, you need scikit-learn and scipy installed because scikit-survival depends on them for mathematical computation and machine learning functionality. The Skill requires these libraries to perform survival time analysis and handle censored data.

Why use scikit-survival instead of standard scikit-learn for time-to-event data?

Scikit-survival is used instead of standard scikit-learn because it natively handles censored data and time-to-event modeling. Standard scikit-learn lacks built-in support for survival analysis-specific algorithms like Cox models and random survival forests.

When should I avoid using survival support vector machines for patient outcome prediction?

You should avoid survival support vector machines when your dataset is very small or when the proportional hazards assumption is clearly violated. Consider checking data distribution and censoring patterns before applying these specific survival models.