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/github.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/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 stc-methodology

Your own site · 80×15
<a href="https://agentmods.dev/skills/choxos/biostatagent/stc-methodology"><img src="https://agentmods.dev/badge/skills/choxos/biostatagent/stc-methodology.svg" alt="Reviewed on agentmods" width="80" 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.5 $0.00016 $0.01089
Sonnet 5.5 $0.00008 $0.00544
Haiku 4.5 $0.00004 $0.00272

Measured 1mo ago against content hash ee20ea855c0d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-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 1mo 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. 1mo 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 (12 stars, last pushed 5mo ago), licensed MIT. It adds 40 tokens to every session and 2,722 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 skills, from other repositories

imaging-data-commons

Queries and downloads public cancer imaging data from NCI Imaging Data Commons. Supports IDC collection discovery, DICOM access, radiology (CT, MR, PET) and pathology AI datasets, metadata SQL, visualization, licensing, and citations. Uses public metadata and download routes without authentication; optional BigQuery…

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

lab-hardware-cad

Designs custom laboratory hardware as parametric build123d models and exports fabrication artifacts as 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…

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

onekgpd

Queries 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…

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

experimental-design

Designs experiments and studies BEFORE data is collected — choosing a design, randomizing, blocking, and laying out treatment combinations so results are interpretable. Use whenever someone is planning a study, asks how to assign subjects/samples to groups, mentions randomization, blocking, stratification, controls…

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

hypothesis-generation

Formulates evidence-bounded scientific questions, candidate hypotheses, rival explanations, causal or associational claims, discriminating predictions, measurements, and preregistration-ready analysis plans. Used when turning observations or preliminary findings into transparent, testable research plans without…

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