stc-methodology

stc-methodology is a skill for Claude Code from choxos/BiostatAgent. It costs 40 tokens per session (2,722 once invoked), scanned A, original, MIT.

Guidance for Simulated Treatment Comparison (STC), a statistical method for comparing treatments studied in separate clinical trials by adjusting for differences between their patient groups.

In plain words
What is it for?
Use it to plan, implement, review, or stress-test Bayesian or frequentist STC analyses, including outcome models and sensitivity analyses.
Why use it?
It helps analysts choose between STC and MAIC, select relevant patient characteristics, and interpret adjusted treatment effects correctly.

Skill for Claude Code

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

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

Good fit Use it to plan, implement, review, or stress-test Bayesian or frequentist STC analyses, including outcome models and sensitivity analyses.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/choxos/biostatagent/stc-methodology
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 stc-methodology
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 stc-methodology

README.md
[![agentmods](https://agentmods.dev/badge/skills/choxos/biostatagent/stc-methodology.svg)](https://agentmods.dev/skills/choxos/biostatagent/stc-methodology)
Your own site
<a href="https://agentmods.dev/skills/choxos/biostatagent/stc-methodology"><img src="https://agentmods.dev/badge/skills/choxos/biostatagent/stc-methodology.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,722 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.00040 $0.02722
Opus 5 $0.00020 $0.01361
Sonnet 5 $0.00008 $0.00544
Haiku 4.5 $0.00004 $0.00272

Measured 7d ago against content hash ee20ea855c0d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

stc-methodology 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 7d 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/skills/stc-methodology/SKILL.md · 338 lines

How it starts

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

STC Methodology

Comprehensive methodological guidance for conducting rigorous Simulated Treatment Comparisons following NICE DSU TSD 18.

When to Use This Skill

  • Deciding between STC and MAIC
  • Selecting effect modifiers for an STC model
  • Implementing covariate centering on an aggregate target population
  • Reviewing STC code or results
  • Planning Bayesian or frequentist sensitivity analyses

Fundamental Concept

Outcome Regression vs Propensity Weighting

STC approach

  • Fit an outcome regression model in the IPD study.
  • Include treatment and treatment-covariate interactions for relevant effect modifiers.
  • Center covariates on the external aggregate population.
  • Interpret the treatment coefficient as the adjusted effect in that external population.

MAIC approach

  • Reweight IPD to match external aggregate covariate summaries.
  • Estimate the weighted treatment effect in the target population.
  • Use weight diagnostics and effective sample size as core feasibility checks.

Key Equation for a Binary Anchored STC

logit{P(Y = 1)} = beta_0 + beta_trt * Treatment
                + beta_X * X_centered
                + beta_trt_X * Treatment * X_centered

X_centered = X - X_external

With centered covariates, beta_trt estimates the treatment effect in the external population, because X_centered = 0 corresponds to the aggregate target values.

Assumptions

Conditional Constancy of Relative Effects

  • Anchored STC assumes relative effects are constant across populations after adjustment for all relevant effect modifiers.
  • The assumption is not testable with the available data alone.
  • Effect modifiers must be measured in the IPD and reported as compatible aggregate summaries in the external study.

Model Specification

STC additionally assumes that the outcome model is correctly specified:

  • Appropriate link function for the endpoint.
  • Defensible functional forms for continuous covariates.
  • Required treatment-covariate interactions included.
  • No unsupported extrapolation beyond the IPD covariate support.

Read the full file on GitHub · 338 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. 7d ago First seen · 338 lines · 40 tokens per session scan A ee20ea855c0d

Subscribe to this mod's changes

stc-methodology is a skill published in the GitHub repository choxos/BiostatAgent (11 stars, last pushed 3mo ago), licensed MIT. It adds 40 tokens to every session and 2,722 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

pkpd-modeling

Pharmacokinetic and pharmacodynamic modelling and simulation - non-compartmental analysis, compartmental and population PK, PK/PD and exposure-response, TMDD, PBPK orientation, bioequivalence, allometric scaling and first-in-human dose, drug interaction prediction, and Bayesian therapeutic drug monitoring. Use when…

K-Dense-AI/scientific-agent-skills · 273 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

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