mediana-fundamentals

mediana-fundamentals is a skill for Claude Code from choxos/BiostatAgent. It costs 38 tokens per session (4,047 once invoked), scanned A, original, MIT.

A set of Mediana package functions for clinical trial simulation, where researchers test trial designs against different possible patient-outcome scenarios.

In plain words
What is it for?
Use it to define data, analysis, and evaluation models; set multiplicity adjustments; measure power; run trial simulations; and create Word reports.
Why use it?
It provides a structure for connecting simulated data, statistical analyses, and success criteria before a trial is run.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the clinical-trial-simulation plugin — 7 skills, 5 commands, 7 agents shipped together

Good fit Use it to define data, analysis, and evaluation models; set multiplicity adjustments; measure power; run trial simulations; and create Word reports.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/choxos/biostatagent/mediana-fundamentals
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add choxos/BiostatAgent --skill mediana-fundamentals
Clone the repo
git clone --depth 1 https://github.com/choxos/BiostatAgent

Made for: Claude Code.

Or install clinical-trial-simulation, the plugin that ships this one along with the rest of its 7 skills, 5 commands, 7 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mediana-fundamentals

README.md
[![agentmods](https://agentmods.dev/badge/skills/choxos/biostatagent/mediana-fundamentals/github.svg)](https://agentmods.dev/skills/choxos/biostatagent/mediana-fundamentals)
Your own site
<a href="https://agentmods.dev/skills/choxos/biostatagent/mediana-fundamentals"><img src="https://agentmods.dev/badge/skills/choxos/biostatagent/mediana-fundamentals/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mediana-fundamentals

Your own site · 80×15
<a href="https://agentmods.dev/skills/choxos/biostatagent/mediana-fundamentals"><img src="https://agentmods.dev/badge/skills/choxos/biostatagent/mediana-fundamentals.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,047 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.04047
Opus 5 $0.00019 $0.02024
Sonnet 5 $0.00008 $0.00809
Haiku 4.5 $0.00004 $0.00405

Measured 12d ago against content hash 847c57cd0afd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

mediana-fundamentals scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/clinical-trial-simulation/skills/mediana-fundamentals/SKILL.md · 529 lines

How it starts

The opening of the file, as written. The whole thing — 529 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Mediana Fundamentals

When to Use This Skill

  • Building Clinical Scenario Evaluation (CSE) frameworks
  • Defining data models with various endpoint distributions
  • Configuring analysis models with statistical tests
  • Setting up multiplicity adjustment procedures
  • Defining evaluation criteria (power metrics)
  • Running comprehensive trial simulations
  • Generating Word-based simulation reports

Package Overview

Mediana by Gautier Paux and Alex Dmitrienko provides a general framework for clinical trial simulations based on the Clinical Scenario Evaluation approach (Benda et al., 2010).

CSE Framework Components

  1. Data Models - Define data generation process
  2. Analysis Models - Define statistical methods
  3. Evaluation Models - Define success criteria

Data Model

Initialization

data.model <- DataModel()

OutcomeDist - Outcome Distribution

Specifies the distribution of patient outcomes.

OutcomeDist(
  outcome.dist = "NormalDist",   # Distribution type
  outcome.type = "standard"       # "standard" or "event"
)

Supported Distributions:

Distribution Parameters Use Case
UniformDist max Uniform outcomes
NormalDist mean, sd Continuous endpoints
BinomDist prop Binary endpoints
BetaDist a, b Proportions
ExpoDist rate Time-to-event
WeibullDist shape, scale Survival with shape
TruncatedExpoDist rate, trunc Truncated survival
PoissonDist lambda Count data
NegBinomDist dispersion, mean Overdispersed counts
MultinomialDist prob Categorical outcomes

Multivariate Distributions:

Distribution Parameters Use Case
MVNormalDist par, corr Correlated continuous
MVBinomDist par, corr Correlated binary
MVExpoDist par, corr Correlated survival
MVExpoPFSOSDist par, corr PFS/OS endpoints
MVMixedDist type, par, corr Mixed endpoint types

Read the full file on GitHub · 529 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 529 lines · 38 tokens per session scan A 847c57cd0afd

Subscribe to this mod's changes

mediana-fundamentals is a skill published in the GitHub repository choxos/BiostatAgent (11 stars, last pushed 3mo ago), licensed MIT. It adds 38 tokens to every session and 4,047 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

imaging-data-commons

Query and download public cancer imaging data from NCI Imaging Data Commons. Invoke for any question about IDC collections, cancer imaging datasets, DICOM data access, radiology (CT, MR, PET) or pathology AI training sets, metadata queries, visualization, or license checks — even when the user doesn't explicitly…

K-Dense-AI/scientific-agent-skills · 75 tokens

lab-hardware-cad

Design custom laboratory hardware as parametric build123d models and export fabrication-ready STEP, STL, and DXF files - microfluidic chips and molds, optomechanical mounts and breadboard adapters, cuvette and microplate holders, tube racks, animal-behavior rigs, and 3D-printed instrument fixtures. Use when a research…

K-Dense-AI/scientific-agent-skills · 106 tokens

onekgpd

Query the 1000 Genomes Project dataset (3,202 whole-genome-sequenced individuals, GRCh38) at the level of individual participants. Use when a question is about individuals or variants in the 1000 Genomes Project cohort: which individuals carry variants matching specific criteria in a gene or region, which individuals…

K-Dense-AI/scientific-agent-skills · 143 tokens

statistical-analysis

Guided statistical analysis for research data - test selection, assumption checking, effect sizes, power analysis, Bayesian alternatives, and APA-formatted reporting. Use whenever a user wants to compare groups, test a hypothesis, analyze experimental or survey data, check statistical assumptions, compute required…

K-Dense-AI/scientific-agent-skills · 111 tokens

clinical-decision-support

Prepare and validate research-only clinical decision-support evaluation, evidence-profile, cohort, survival, biomarker/model, privacy, and governance artifacts. Use for aggregate or synthetic research documentation and traceability—not patient care or live clinical operation.

K-Dense-AI/scientific-agent-skills · 50 tokens

diffdock

DiffDock and DiffDock-L molecular docking. Use for protein-small-molecule pose prediction from PDB or sequence plus SMILES/SDF/MOL2, batch docking, virtual screening, and pose-confidence interpretation. Not for binding affinity prediction.

K-Dense-AI/scientific-agent-skills · 51 tokens