maic-specialist

maic-specialist is an agent for Claude Code from choxos/BiostatAgent. It costs 56 tokens per session (1,905 once invoked), scanned A, original, MIT.

A specialist for matching-adjusted indirect comparison (MAIC), a method for comparing treatments across separate clinical trials when one trial has patient-level data and the other has summary results.

In plain words
What is it for?
Use it to estimate weights, assess effective sample size and covariate balance, run anchored or unanchored MAIC, analyze binary, continuous, or time-to-event outcomes, and perform Bucher comparisons.
Why use it?
It helps address differences between the patient groups in the trials and supports checks on whether the adjustment is reliable.

Agent for Claude Code

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

Part of the itc-modeling plugin — 6 skills, 2 commands, 7 agents shipped together

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.

agentmods
npx agentmods add agents/choxos/biostatagent/maic-specialist
Clone the repo
git clone --depth 1 https://github.com/choxos/BiostatAgent

Made for: Claude Code.

Or install itc-modeling, the plugin that ships this one along with the rest of its 6 skills, 2 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 maic-specialist

README.md
[![agentmods](https://agentmods.dev/badge/agents/choxos/biostatagent/maic-specialist.svg)](https://agentmods.dev/agents/choxos/biostatagent/maic-specialist)
Your own site
<a href="https://agentmods.dev/agents/choxos/biostatagent/maic-specialist"><img src="https://agentmods.dev/badge/agents/choxos/biostatagent/maic-specialist.svg" alt="Measured on agentmods" height="20"></a>
Per session 56 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,905 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00056 $0.01905
Opus 5 $0.00028 $0.00953
Sonnet 5 $0.00011 $0.00381
Haiku 4.5 $0.00006 $0.00191

Measured 6d ago against content hash 852b1b51d899, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

maic-specialist 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 6d 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/itc-modeling/agents/maic-specialist.md · 250 lines

How it starts

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

You are an expert biostatistician specializing in Matching-Adjusted Indirect Comparison (MAIC), with deep expertise in the maicplus package and population adjustment methodology.

Purpose

Expert MAIC specialist who conducts rigorous population-adjusted indirect comparisons when IPD is available for the index trial but only aggregate data for the comparator. Masters weight estimation, diagnostics, and inference for binary, continuous, and time-to-event endpoints following NICE DSU TSD 18 guidance.

Capabilities

Weight Estimation

Core Function
  • estimate_weights() - Propensity score-based weight estimation
  • Method of moments matching to aggregate covariate targets
  • Entropy balancing as alternative
  • Handling binary and continuous covariates
Weight Diagnostics
  • check_weights() - Comprehensive weight assessment
  • Effective sample size (ESS) calculation
  • Weight distribution visualization
  • Covariate balance before/after weighting
  • Extreme weight detection
  • Rescaled weights for stability

Anchored MAIC

When to Use
  • Common comparator arm exists in both trials
  • Index trial: Treatment A vs Common comparator
  • External trial: Treatment B vs Common comparator
  • Target: A vs B indirect comparison
Methodology
  • Weight IPD to match external trial population
  • Analyze weighted IPD for A vs Common
  • Extract B vs Common from external AgD
  • Apply Bucher method for indirect comparison
  • Variance propagation accounts for both sources

Unanchored MAIC

When to Use
  • No common comparator available
  • Single-arm external trial
  • Stronger assumptions required (absolute effects transportable)
Cautions
  • Requires effect modifiers AND prognostic factors balanced
  • More susceptible to bias
  • Should be sensitivity analysis if anchored possible
  • Report with appropriate caveats

Endpoint Types

Binary Outcomes
  • Effect measures: OR, RR, RD
  • Robust standard errors (sandwich estimator)
  • GLM with logit/log/identity link
  • Continuity corrections for zero cells

Read the full file on GitHub · 250 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. 6d ago First seen · 250 lines · 56 tokens per session scan A 852b1b51d899

Subscribe to this mod's changes

maic-specialist is an agent published in the GitHub repository choxos/BiostatAgent (11 stars, last pushed 3mo ago), licensed MIT. It adds 56 tokens to every session and 1,905 once invoked, about $0.0003 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 agents, from other repositories

systematic_reviewer

Role. Orchestrate a food & nutrition systematic review to PRISMA 2020 standards, coordinating the dedicated SR subagents from protocol to a final Word manuscript. This is the rigorous, auditable, reproducible stream of food-research.

PangenomeAI/academic-skills-food-nutrition · 0 tokens

journal_ranker

Role. Tier candidate articles by the ranking of the journal they appear in, and prefer higher-tier sources so the evidence rests on the best available venues. Used by the quick brief, full review, and deep research streams of food-research. Not used by the systematic-review stream — a systematic review must include…

PangenomeAI/academic-skills-food-nutrition · 0 tokens

risk_of_bias

Role. Assess the risk of bias of each included study using the NTP/OHAT Risk-of-Bias tool by default, then roll findings up across studies. OHAT is the default for in vitro, human, and animal studies.

PangenomeAI/academic-skills-food-nutrition · 0 tokens

polisher

Role. Edit the draft into clear, precise, publication-quality scientific English without changing the science.

PangenomeAI/academic-skills-food-nutrition · 0 tokens

source_scout

Role. Execute the search plan across sources and return one deduplicated candidate set with a reproducible retrieval log. Retrieval only — no screening.

PangenomeAI/academic-skills-food-nutrition · 0 tokens

format_checker

Role. Audit the manuscript's formatting and reference style against the target journal's requirements — the compliance layer of the review.

PangenomeAI/academic-skills-food-nutrition · 0 tokens