tooluniverse-statistical-modeling

tooluniverse-statistical-modeling is a skill for Claude Code from mims-harvard/ToolUniverse. It costs 90 tokens per session (9,548 once invoked), scanned A, original, Apache-2.0.

A guide to statistical tests and regression models for biomedical data. It includes methods for outcomes such as event counts, disease categories, treatment effects, and time until an event occurs.

In plain words
What is it for?
Use it for regression, group comparisons, survival analysis, effect sizes, p-values, and adverse-event analysis from clinical-trial datasets.
Why use it?
It helps choose analyses suited to the data instead of relying on a single test. It also provides specific handling for clinical-trial adverse events and severity ratings.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the tooluniverse plugin — 164 skills, 8 commands, 1 agent, 1 hook, 1 MCP server shipped together

Good fit Use it for regression, group comparisons, survival analysis, effect sizes, p-values, and adverse-event analysis from clinical-trial datasets.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mims-harvard/tooluniverse/tooluniverse-statistical-modeling
About the project

ToolUniverse is a collection of tools, interfaces, and supporting components for building AI systems that perform scientific work. It is for developers creating AI scientist agents that use APIs, databases, machine-learning tools, and domain-specific utilities. The catalogue includes skills, commands, an MCP server, an agent, and a hook for working with the ecosystem.

mims-harvard/ToolUniverse · 1,813 stars · on GitHub · aiscientist.tools

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 mims-harvard/ToolUniverse --skill tooluniverse-statistical-modeling
Clone the repo
git clone --depth 1 https://github.com/mims-harvard/ToolUniverse

Made for: Claude Code.

Or install tooluniverse, the plugin that ships this one along with the rest of its 164 skills, 8 commands, 1 agent, 1 hook, 1 MCP server.

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 tooluniverse-statistical-modeling

README.md
[![agentmods](https://agentmods.dev/badge/skills/mims-harvard/tooluniverse/tooluniverse-statistical-modeling/github.svg)](https://agentmods.dev/skills/mims-harvard/tooluniverse/tooluniverse-statistical-modeling)
Your own site
<a href="https://agentmods.dev/skills/mims-harvard/tooluniverse/tooluniverse-statistical-modeling"><img src="https://agentmods.dev/badge/skills/mims-harvard/tooluniverse/tooluniverse-statistical-modeling/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 tooluniverse-statistical-modeling

Your own site · 80×15
<a href="https://agentmods.dev/skills/mims-harvard/tooluniverse/tooluniverse-statistical-modeling"><img src="https://agentmods.dev/badge/skills/mims-harvard/tooluniverse/tooluniverse-statistical-modeling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,548 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. Third-party audits
  • Socket pass 27 May 2026
  • Snyk warn 27 May 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium analysis-evasion · line 1
    Suspicious Unicode normalization or mixed-script content
    Fix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
How audits are shown
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.00090 $0.09548
Opus 5.5 $0.00036 $0.03819
Sonnet 5.5 $0.00018 $0.01910
Haiku 4.5 $0.00009 $0.00955

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

Security

Grade A, and why

tooluniverse-statistical-modeling 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.

The scan reads SKILL.md. This mod also ships 10 executable files (scripts/expression_anova.py, scripts/format_statistical_output.py, scripts/logistic_regression_or.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugin/skills/tooluniverse-statistical-modeling/SKILL.md · 685 lines

How it starts

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

Statistical Modeling for Biomedical Data Analysis

Compute the answer from the data

Do the analysis yourself, from the data files, with the recipe below. Do not take the answer from a notebook that has already been run, a result table, or the output of a script that ships with the data: those are not inputs to the analysis, and copying their numbers is not doing it.


PRIMARY SCRIPTS — use these FIRST

These scripts encode the question-specific gotchas in scripts/ and emit labelled, parseable output. Prefer them over ad-hoc statsmodels / scipy code.

Script When to use it
r_natural_spline_regression.py ANY question that mentions R syntax lm(y ~ ns(x, df = K)), "natural spline", or asks for spline R²/F/peak prediction CIs. Always shells out to Rscript so splines::ns() matches.
spline_model_compare.py "Best-fitting model among quadratic, cubic and natural spline" / "max colony area at the optimal x". Fits all three in R, ranks by adj-R²/AIC/BIC, and reports the BEST model's peak (x*, y*) with 95% CI.
logistic_regression_or.py Binary or ordinal logistic regression where the answer is an OR (or OR + 95% CI). Handles label encoding, explicit Placebo=0/BCG=1 maps, AND interaction terms (--interaction A:B -> creates A_B = A*B). Prints OR + CI for every coefficient and a SCALARS block for the requested --coef-name.
power_analysis.py "Minimum sample size per group", "TTestIndPower", "given Cohen's d, what N for power=0.8". Computes pooled-SD Cohen's d from a CSV (or accepts --effect-size), then TTestIndPower.solve_power.
expression_anova.py Per-gene ANOVA / median LFC across cell types or sample groups (NOT pooled across genes — see warnings below).
prepare_ae_cohort.py Clinical-trial AE severity tests (chi-square / ordinal) on SDTM DM/AE files (encoding='latin1', max(AESEV) per subject across ALL AEs — no AEPT filter).
stat_tests.py Stdlib-only chi-square goodness-of-fit, Fisher's exact, simple OLS. Use when scipy/statsmodels aren't available.

Read the full file on GitHub · 685 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 Changed · -2 lines 7ea603f0b35c
  2. 1mo ago Changed · +27 lines c9844766824e
  3. 2mo ago First seen · 660 lines · 90 tokens per session scan A 8f77fa55cd78

Subscribe to this mod's changes

tooluniverse-statistical-modeling is a skill published in the GitHub repository mims-harvard/ToolUniverse (1,813 stars, last pushed yesterday), licensed Apache-2.0. It adds 90 tokens to every session and 9,548 once invoked, about $0.0004 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-09-03.

Related

tooluniverse-statistical-modeling compared with skills from other repositories

tooluniverse-statistical-modeling next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tooluniverse-statistical-modelingmims-harvard/ToolUniverseSkill1.8kyesterdayApache-2.0A90Claude Code
ai-agent-tool-routingsickn33/agentic-awesome-skillsSkill51kyesterdayMITA36Claude Code
contour-integralsparcadei/Continuous-Claude-v3Skill4.0k15d agoMITA15Claude Code
lebesgue-measureparcadei/Continuous-Claude-v3Skill4.0k15d agoMITA17Claude Code
numerical-integrationparcadei/Continuous-Claude-v3Skill4.0k15d agoMITA14Claude Code
eigenvaluesparcadei/Continuous-Claude-v3Skill4.0k15d agoMITA13Claude Code
clip-dissectzjunlp/MechanistSkill823d agoMITA76Claude Code