hazard-survival-modeling

Predict catastrophe onset in token generation using discrete-time survival analysis with XGBoost.

3|Updated Dec 22, 2025
One-click install
npx skills add https://github.com/JoaquinCampo/Skills --skill hazard-survival-modeling
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hazard-survival-modeling
Source: https://github.com/JoaquinCampo/Skills/tree/main/hazard-survival-modeling
Command: npx skills add https://github.com/JoaquinCampo/Skills --skill hazard-survival-modeling

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill guides practitioners in implementing hazard and survival modeling for sequential token prediction, enabling reliable estimation of catastrophe risk in token-generation tasks.

Core Features & Use Cases

  • Discrete-time hazard concepts (hazard, survival, censoring) applied to token sequences
  • Horizon-based labeling strategies, competing risks handling, and evaluation metrics
  • Practical implementation patterns using XGBoost on person-period data, with approaches for calibration and survival-curve computation

Quick Start

Train a hazard predictor by expanding sequences to person-period data and fitting a binary classifier to predict catastrophe onset at each token.

Frequently Asked Questions about hazard-survival-modeling

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

FAQPage Schema
What is discrete-time survival analysis for token sequences?

Discrete-time survival analysis for token sequences estimates catastrophe risk by modeling hazard probabilities at each token step, enabling reliable prediction of failure onset during sequential generation tasks.

How do I predict catastrophe onset in sequential token generation?

You predict catastrophe onset by expanding token sequences into person-period data and fitting a binary classifier, such as XGBoost, to estimate hazard probabilities at each discrete time step.

Can I use XGBoost for hazard modeling on person-period data?

Yes, XGBoost is used for hazard modeling by fitting a binary classifier on expanded person-period data, allowing you to compute calibrated survival curves and predict catastrophe onset across token horizons.

What are horizon labeling strategies in survival analysis?

Horizon labeling strategies in survival analysis define target windows for catastrophe events across token sequences, allowing models to handle competing risks and structure discrete-time hazard prediction effectively.

Does this survival modeling approach handle censoring in token generation?

Yes, the survival modeling approach handles censoring by applying discrete-time survival theory to token sequences, allowing you to estimate hazard rates even when catastrophe events are not fully observed.

What evaluation metrics are used for discrete-time hazard models?

Evaluation metrics for discrete-time hazard models assess predictive accuracy and calibration across survival curves, ensuring reliable catastrophe onset prediction within sequential token generation workflows.