bayesian-reanalysis

Perform Bayesian Monte Carlo re-analysis of clinical trial data with literature-derived priors.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/j-walheim/Critical-AI-Scientist --skill bayesian-reanalysis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bayesian-reanalysis
Source: https://github.com/j-walheim/Critical-AI-Scientist/tree/main/agent_definition/.claude/skills/bayesian-reanalysis
Command: npx skills add https://github.com/j-walheim/Critical-AI-Scientist --skill bayesian-reanalysis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of interpreting clinical trial results when prior evidence exists, providing a probabilistic assessment of a meaningful treatment effect beyond traditional frequentist methods.

Core Features & Use Cases

  • Bayesian Monte Carlo Re-analysis: Integrates literature-derived priors with trial data to estimate the probability of a clinically meaningful effect.
  • Prior Sensitivity Analysis: Assesses the robustness of conclusions across skeptical, evidence-based, and enthusiastic prior specifications.
  • Use Case: Evaluating an underpowered trial where prior studies suggest a potential effect, this Skill can quantify the probability that the observed data, combined with existing knowledge, supports a meaningful treatment benefit.

Quick Start

Use the bayesian-reanalysis skill to perform a Bayesian analysis on the current trial data using the provided prior evidence report.

Frequently Asked Questions about bayesian-reanalysis

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

FAQPage Schema
How do I calculate the probability of a treatment effect using Bayesian analysis?

Bayesian analysis calculates the probability of a treatment effect by integrating literature-derived priors with clinical trial data through Monte Carlo simulations, yielding posterior distributions that quantify the likelihood of a clinically meaningful benefit.

What is prior sensitivity analysis and why is it important for clinical trials?

Prior sensitivity analysis assesses the robustness of Bayesian clinical trial conclusions by evaluating posterior outcomes across skeptical, evidence-based, and enthusiastic prior specifications. It ensures observed treatment effect probabilities are not artifacts of an arbitrarily chosen prior.

How do I perform Bayesian re-analysis on underpowered clinical trial data?

Bayesian re-analysis of underpowered trials combines existing literature-derived prior evidence with observed trial data via Monte Carlo sampling. This approach quantifies the probability of a meaningful treatment effect that traditional frequentist hypothesis testing might fail to detect.

Can I use Bayesian Monte Carlo methods for binary, continuous, and survival endpoints?

Bayesian Monte Carlo re-analysis supports various clinical trial endpoint types including binary, continuous, and survival data. It calculates posterior distributions, Highest Density Intervals (HDI), and Region of Practical Equivalence (ROPE) metrics for each supported format.

What is the difference between Highest Density Interval and Region of Practical Equivalence in Bayesian hypothesis testing?

Highest Density Interval (HDI) identifies the narrowest range containing the most credible posterior parameter values, while Region of Practical Equivalence (ROPE) defines a range of effect sizes considered practically meaningless. Comparing them determines if a treatment effect is statistically and practically significant.

When should I not use Bayesian re-analysis for clinical trial data?

Bayesian re-analysis may not be appropriate when no prior literature exists to elicit evidence-based priors, or when strictly frequentist regulatory submissions are required. It requires subjective prior specification, which can influence posterior conclusions if sensitivity analysis is insufficient.