Skip to content
Agentmart
Submit a tool

stat-modeling-tools

Statistical modeling workflow guide for hypothesis tests, effect-size reporting, statsmodels regression, diagnostics, and structured result export.

Skill by DrugClaw

IndexedApache-2.0★ 87
Write a review

Chalk Labs

Need help deploying stat-modeling-tools?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/drugclaw-stat-modeling-tools

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Statistical modeling workflow guide for hypothesis tests, effect-size reporting, statsmodels regression, diagnostics, and structured result export. Use when the user asks for statistical test selection, OLS or logistic regression, coefficient tables, inference, or reproducible statistical summaries for scientific datasets.

Use cases: testing, ml, research, productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/stat-modeling-tools

What's inside

Skill name
stat-modeling-tools
Description
Statistical modeling workflow guide for hypothesis tests, effect-size reporting, statsmodels regression, diagnostics, and structured result export. Use when the user asks for statistical test selection, OLS or logistic regression, coefficient tables, inference, or reproducible statistical summaries for scientific datasets.
License
Apache-2.0
Instructions
104 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (3)

  • SKILL.md
  • stat_test_report.py · templates/
  • statsmodels_regression.py · templates/

SKILL.md (first lines)

# Stat Modeling Tools

Use this skill when the user needs reproducible statistical analysis rather than only visual inspection.

Typical triggers:
- choose or run a hypothesis test on tabular data
- compare two groups or test association between variables
- fit OLS, logistic, or Poisson models with coefficient tables
- inspect residuals, p-values, confidence intervals, or effect sizes
- generate machine-readable statistical summaries for a manuscript or report

## Environment Check

```bash
which python3 || true
python3 - <<'PY'
mods = ["numpy", "pandas", "scipy", "statsmodels"]
for name in mods:
    try:
        __import__(name)
        print(f"{name}: ok")
    except Exception as exc:
        print(f"{name}: missing ({exc})")
PY
```

If key modules are missing, say so explicitly and recommend the optional `drug-sandbox` image documented in `docs/operations/science-runtime.md`.

## Bundled Assets

- `templates/stat_test_report.py`
- `templates/statsmodels_regression.py`

## Preferred Workflow

1. Identify outcome type first: continuous, binary, count, or categorical contingency table.
2. Run a small deterministic statistical summary before fitting a larger model.
3. Report effect sizes and confidence intervals, not only p-values.
4. Save CSV and JSON outputs so the result is reusable.
5. Keep claim scope tied to the study design. Statistical association is not causal proof.

## Hypothesis Tests

```bash
python3 templates/stat_test_report.py \
  --input stats/assay.csv \
  --test independent_ttest \
  --value-column response \
  --group-column arm \
  --group-a control \
  --group-b treated \
  --output stats/assay_ttest.csv \
  --summary stats/assay_ttest.json
```

Supported baseline tests in the bundled template:
- `independent_ttest`
- `paired_ttest`
- `mannwhitney`
- `chi_square`
- `pearson`
- `spearman`

Use this for quick but explicit statistical reporting.

## Regression With Statsmodels

```bash
python3 templates/statsmodels_regression.py \
  --input stats/cohort.csv \
  --model ols \
  --outcome response \
  --feature age \
  --feature dose \
  --feature biomarker \
  --output stats/ols_coefficients.csv \
  --summary stats/ols_summary.json
```

Supported baseline models in the bundled template:
- `ols`
- `logit`
- `poisson`

Use this for:
- coefficient tables with confidence intervals
- basic inference and model-fit summaries
- prediction export for downstream review

## Working Rules

- Prefer exact test names and explicit group labels.
- Check whether the data are paired before running paired tests.
- For regression, list the exact feature set and reference coding assumptions.
- Do not oversell significance when effect sizes are trivial.
- Distinguish exploratory testing from pre-specified confirmatory analysis.

## Related Skills

For Kaplan-Meier, Cox models, and time-to-event workflows, activate `survival-analysis-tools`.
For static or interactive figures, activate `scientific-visualization-tools`.
For study design, reproducibility planning, or manuscript critique, activate `scientific-workflow-tools` or `clinical-research-tools`.

From DrugClaw/DrugClaw, Apache-2.0.

More from DrugClaw/DrugClaw

Signals

Stars
87
Forks
8
Open issues
1
Last commit (this folder)
Mar 11, 2026 (7 months ago)
Last release
Mar 13, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from DrugClaw

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get stat-modeling-tools running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying stat-modeling-tools?

CallGet help
Cite this page

stat-modeling-tools skill. Agent Mart. https://agentmart.dev/skills/drugclaw-stat-modeling-tools (last updated 2026-10-24)