Stat Modeling Tools
SkillAI & modelsStatistical 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 Stat Modeling Tools in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add Stat Modeling Tools and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the Stat Modeling Tools skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; Ahel provides instructions and does not run this skill.
No other account needed.
Add Ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
What this skill tells your AI
The instructions your AI receives, as published by drugclaw/drugclaw in skills/science/stat-modeling-tools/SKILL.md and read by Ahel’s review.
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
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.pytemplates/statsmodels_regression.py
Preferred Workflow
- Identify outcome type first: continuous, binary, count, or categorical contingency table.
- Run a small deterministic statistical summary before fitting a larger model.
- Report effect sizes and confidence intervals, not only p-values.
- Save CSV and JSON outputs so the result is reusable.
- Keep claim scope tied to the study design. Statistical association is not causal proof.
Hypothesis Tests
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_ttestpaired_ttestmannwhitneychi_squarepearsonspearman
Use this for quick but explicit statistical reporting.
Regression With Statsmodels
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:
olslogitpoisson
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.
Signals
- GitHub stars
- 125
- Forks
- 9
- Last commit
- Mar 2026
Advanced
- Item type
- skill
- Key
stat-modeling-tools- Source
- github.com/drugclaw/drugclaw
Related picks
Skill · fdiblen
The pick for Notebooksexecute
Skill · brycewang-stanford
The pick for Notebookspandas-dataframe-analyzer
Skill · a5c-ai
The pick for Pandasxlsx
Skill · anthropics
The pick for Pandaspython-performance-optimization
Skill · wshobson
The pick for Pythonpython-pro
Skill · jeffallan
The pick for Python