scikit-survival

Fit survival models and evaluate censored data with scikit-survival.

1|Updated Mar 12, 2026
One-click install
npx skills add https://github.com/yf8578/clawomics --skill scikit-survival-yf8578
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scikit-survival
Source: https://github.com/yf8578/clawomics/tree/main/skills/scikit-survival
Command: npx skills add https://github.com/yf8578/clawomics --skill scikit-survival-yf8578

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill empowers users to perform advanced survival analysis and time-to-event modeling, enabling deeper insights into time-dependent data and patient outcomes.

Core Features & Use Cases

  • Model Fitting: Supports CoxPH, CoxNet, Random Survival Forests, Gradient Boosting, and Survival SVMs.
  • Data Handling: Includes tools for preprocessing survival data, handling censoring, and evaluating model performance.
  • Use Case: Analyze patient data to predict disease recurrence or survival time, accounting for censored observations and identifying key prognostic factors.

Quick Start

Use the scikit-survival skill to fit a Cox proportional hazards model to the provided survival data.

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?

You can perform survival analysis on censored data by fitting models like Cox proportional hazards or Random Survival Forests to time-to-event data, handling right-censored observations to predict outcomes and identify prognostic factors.

What is the best way to evaluate time-to-event model performance?

The best way to evaluate time-to-event model performance is using the concordance index and Brier score, which are robust metrics designed specifically to assess prediction accuracy on censored survival data.

Can I use Random Survival Forests and Gradient Boosting for biostatistics modeling?

Yes, Random Survival Forests and Gradient Boosting can be used for biostatistics modeling to analyze complex time-to-event data, capturing non-linear relationships while properly accommodating censored observations.

How do I fit a Cox proportional hazards model to patient data?

Fitting a Cox proportional hazards model to patient data requires preprocessing the survival data to structure censoring correctly, then applying the algorithm to estimate covariate effects on survival time.

Do I need penalized Cox models for survival analysis?

You need penalized Cox models for survival analysis when dealing with high-dimensional data or multicollinearity, applying regularization to prevent overfitting and improve model variable selection stability.

When should I use Survival SVMs instead of Cox models?

Use Survival SVMs instead of Cox models when the proportional hazards assumption is violated, as Support Vector Machines provide flexible ranking alternatives for survival times without relying on strict proportional hazard constraints.