scikit-survival

Fit Cox proportional hazards models and other survival analysis models.

13|3|Updated Jun 10, 2026
One-click install
npx skills add https://github.com/tassiovale/claude-code-kit --skill scikit-survival-tassiovale
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scikit-survival
Source: https://github.com/tassiovale/claude-code-kit/tree/main/skills/scikit-survival
Command: npx skills add https://github.com/tassiovale/claude-code-kit --skill scikit-survival-tassiovale

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides comprehensive tools for survival analysis and time-to-event modeling, addressing challenges with censored data and complex relationships.

Core Features & Use Cases

  • Survival Analysis: Perform survival analysis and time-to-event modeling with various model types.
  • Censored Data: Handle right-censored, left-censored, and interval-censored data.
  • Model Types: Fit Cox proportional hazards models, Random Survival Forests, Gradient Boosting models, and Survival SVMs.
  • Use Case: Imagine you are analyzing patient survival data from a clinical trial. Use this Skill to fit a Cox model to understand the impact of treatment on survival times.

Quick Start

Fit a Cox proportional hazards model to the breast cancer dataset with the command: python -m sksurv.linear_model.CoxPHSurvivalAnalysis

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 on right-censored clinical trial data in Python?

Survival analysis on right-censored clinical trial data involves fitting models to handle incomplete observations. This Skill uses scikit-learn and scikit-survival to fit Cox models and Random Survival Forests for time-to-event data.

Can I use Random Survival Forests and Gradient Boosting for time-to-event modeling?

Yes, time-to-event modeling can be performed using Random Survival Forests and Gradient Boosting. This Skill implements these advanced model types alongside Survival SVMs to capture complex relationships in censored data.

What is the best way to fit a Cox proportional hazards model to a medical research dataset?

Fitting a Cox proportional hazards model to medical research data involves using specialized survival analysis libraries. This Skill allows you to apply CoxPHSurvivalAnalysis to evaluate how specific treatments impact patient survival times.

Does scikit-survival work with scikit-learn for handling censored data?

Yes, scikit-survival works directly with scikit-learn to handle right-censored, left-censored, and interval-censored data. This dependency integration allows you to apply survival analysis techniques within standard Python machine learning workflows.

When should I use Survival SVMs instead of Cox models for time-to-event data?

Survival SVMs are used for time-to-event data when you need alternatives to standard Cox models for complex relationships. This Skill provides both options, allowing you to choose between Cox proportional hazards and Survival SVMs based on your data structure.