multiplicity-expert

multiplicity-expert is an agent for Claude Code from choxos/BiostatAgent. It costs 38 tokens per session (2,090 once invoked), scanned A, original, MIT.

A specialist for adjusting statistical tests when a study asks several related questions at once. It covers procedures such as Holm, Hochberg, Hommel, graphical methods, and gatekeeping to control the chance of false positives across the questions.

In plain words
What is it for?
Use it to choose, configure, compare, optimize, and validate multiplicity procedures while considering dependence, power, and family-wise error control.
Why use it?
It helps avoid overstating results when multiple hypotheses, treatments, or endpoints are tested.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

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

Good fit Use it to choose, configure, compare, optimize, and validate multiplicity procedures while considering dependence, power, and family-wise error control.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/choxos/biostatagent/multiplicity-expert
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.

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 multiplicity-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/choxos/biostatagent/multiplicity-expert/github.svg)](https://agentmods.dev/agents/choxos/biostatagent/multiplicity-expert)
Your own site
<a href="https://agentmods.dev/agents/choxos/biostatagent/multiplicity-expert"><img src="https://agentmods.dev/badge/agents/choxos/biostatagent/multiplicity-expert/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 multiplicity-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/choxos/biostatagent/multiplicity-expert"><img src="https://agentmods.dev/badge/agents/choxos/biostatagent/multiplicity-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,090 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.02090
Opus 5.5 $0.00015 $0.00836
Sonnet 5.5 $0.00008 $0.00418
Haiku 4.5 $0.00004 $0.00209

Measured 2mo ago against content hash f5dc18b3cc1d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

multiplicity-expert 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 2mo 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/agents/multiplicity-expert.md · 264 lines

How it starts

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

Multiplicity Expert

Purpose

You are an expert in multiple testing procedures and multiplicity adjustment optimization for clinical trials. You help users select, implement, and optimize multiplicity strategies to control the family-wise error rate (FWER) while maximizing power.

Core Capabilities

Procedure Selection

  • Recommend appropriate procedures based on hypothesis structure
  • Evaluate trade-offs between procedures (power vs. robustness)
  • Consider dependence assumptions (any, PRDS, known correlation)

Procedure Implementation

  • Configure Bonferroni, Holm, Hochberg, Hommel
  • Design graphical procedures (chain, fallback)
  • Implement gatekeeping (parallel, multiple-sequence, mixture)
  • Set up parametric procedures with known correlation

Optimization

  • Optimize truncation parameters (gamma)
  • Balance weight allocation
  • Validate FWER under global null
  • Maximize power for prioritized hypotheses

Knowledge Base

Procedure Hierarchy

                        Multiplicity Procedures
                               │
            ┌──────────────────┼──────────────────┐
            │                  │                  │
       Single-Step         Stepwise          Graphical
       (Bonferroni)           │                  │
                    ┌─────────┼─────────┐   ┌────┴────┐
                Step-Down        Step-Up    Chain  Fallback
                (Holm)     (Hochberg,Hommel)

Gatekeeping Hierarchy

                      Gatekeeping Procedures
                              │
           ┌──────────────────┼──────────────────┐
           │                  │                  │
       Parallel       Multiple-Sequence      Mixture
    (2 families)     (multiple sequences)  (serial+parallel)

Decision Framework

Question 1: What is the hypothesis structure?

  • Independent hypotheses → Holm/Hochberg
  • Strict ordering → Fixed-Sequence
  • Primary/Secondary families → Gatekeeping
  • Complex dependencies → Graphical

Question 2: What are the dependence assumptions?

  • Unknown/arbitrary → Bonferroni, Holm
  • PRDS or independence → Hochberg, Hommel
  • Known correlation → NormalParamAdj

Read the full file on GitHub · 264 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. 2mo ago First seen · 264 lines · 38 tokens per session scan A f5dc18b3cc1d

Subscribe to this mod's changes

multiplicity-expert is an agent published in the GitHub repository choxos/BiostatAgent (12 stars, last pushed 5mo ago), licensed MIT. It adds 38 tokens to every session and 2,090 once invoked, about $0.0002 per session on Opus 5.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 agents, from other repositories

clinical-modeler

Use this agent when the user needs to read, write, review, or edit local archetype (.adl), template (.oet, Archetype Designer .t.json, .opt), or composition files in the workspace. It writes only to the local workspace, and can perform read-only MCP lookups (terminology resolution, RM/AM type specs, guides, and…

Cadasto/openehr-assistant-plugin · 407 tokens

data-cruncher

Run heavy quantitative analysis in isolation — fit many model variants, run cross-validation, simulate power, perform sensitivity analyses, profile slow scripts. Use when the parent conversation needs numerical results but should not be polluted with raw output, large dataframes, or long-running compute. Returns a…

Marazii/research-co-pilot · 82 tokens

research-reviewer

Use this agent when a research phase has been completed and needs to be reviewed for scientific rigor, statistical validity, and publication readiness. Examples: Context: Baseline experiments completed. user: "I've finished running all baseline comparisons as outlined in the experiment design" assistant: "Let me…

jeonnoin-alt/Eureka · 197 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens