survival-models

Implement Bayesian survival models with censoring using Stan and JAGS.

9|1|Updated Jan 10, 2026
One-click install
npx skills add https://github.com/choxos/BiostatAgent --skill survival-models
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: survival-models
Source: https://github.com/choxos/BiostatAgent/tree/main/plugins/bayesian-modeling/skills/survival-models
Command: npx skills add https://github.com/choxos/BiostatAgent --skill survival-models

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Bayesian survival analysis models provide probabilistic hazard and time-to-event modeling with censoring considerations, enabling robust inference from incomplete follow-up data.

Core Features & Use Cases

  • Supports Exponential, Weibull, Log-Normal, and Piecewise Exponential hazard models with covariates.
  • Includes frailty modeling and generated quantities for interpretation of hazard ratios and survival probabilities.
  • Suitable for clinical biostatistics, reliability analysis, and research requiring time-to-event analysis with censoring.
  • Real-world use: estimate effects of covariates on survival time and predict survival curves under different scenarios.

Quick Start

Run a basic exponential survival model on your dataset using Stan or JAGS templates.

Frequently Asked Questions about survival-models

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

FAQPage Schema
How do I run Bayesian survival analysis with censored time-to-event data?

Bayesian survival analysis with censored time-to-event data is handled using Stan and JAGS templates that accept structured inputs (N, time, event, X) to estimate hazard models and survival probabilities despite incomplete follow-up.

What hazard models are supported for Bayesian survival modeling?

Bayesian survival modeling supports Exponential, Weibull, Log-Normal, and Piecewise Exponential hazard models, allowing covariate effect estimation and frailty modeling for clustered or hierarchical time-to-event data.

Can I use Stan or JAGS for frailty modeling in survival analysis?

Stan and JAGS both support frailty modeling in survival analysis, enabling hierarchical random effects to account for unobserved heterogeneity in clustered time-to-event data alongside standard covariate hazard modeling.

When do I need Bayesian survival models instead of standard frequentist approaches?

Bayesian survival models are needed when incorporating prior distributions into hazard modeling, handling complex censoring patterns, or requiring generated quantities like survival probabilities and hazard ratios with full uncertainty quantification for clinical biostatistics.

How do I interpret hazard ratios and survival probabilities from Bayesian survival models?

Hazard ratios and survival probabilities are interpreted through generated quantities produced by the Stan and JAGS models, providing posterior distributions that quantify uncertainty around covariate effects and predicted survival curves.

Does Bayesian survival analysis work for reliability engineering and clinical biostatistics?

Bayesian survival analysis works for both reliability engineering and clinical biostatistics, supporting covariate effects, censoring, and hazard modeling applicable to medical research and mechanical failure time-to-event data.