stat-modeling-tools

Automate statistical modeling workflows with Python and statsmodels.

126|8|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/DrugClaw/DrugClaw --skill stat-modeling-tools
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stat-modeling-tools
Source: https://github.com/DrugClaw/DrugClaw/tree/main/skills/science/stat-modeling-tools
Command: npx skills add https://github.com/DrugClaw/DrugClaw --skill stat-modeling-tools

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, pandas, scipy, statsmodels, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of performing statistical analyses on scientific datasets, ensuring reproducible results and clear reporting of findings.

Core Features & Use Cases

  • Hypothesis Testing: Select and run appropriate statistical tests (e.g., t-tests, chi-square, correlation) on tabular data.
  • Regression Analysis: Fit common statistical models like OLS, logistic, and Poisson regression using the statsmodels library.
  • Reproducible Summaries: Generate machine-readable CSV and JSON outputs for statistical tests and regression models, suitable for manuscripts and reports.
  • Use Case: Analyze experimental results by performing an independent t-test to compare two groups, reporting effect sizes and p-values, and saving the summary to a JSON file.

Quick Start

Run an independent t-test on the 'assay.csv' file, comparing the 'response' column between 'control' and 'treated' arms, saving the output to 'assay_ttest.csv' and 'assay_ttest.json'.

Frequently Asked Questions about stat-modeling-tools

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run hypothesis testing and regression analysis on scientific data?

Perform hypothesis testing and regression analysis on scientific data by automating workflows with Python, utilizing numpy, pandas, scipy, and statsmodels to fit OLS, logistic, or Poisson models and generate reproducible summaries.

Can I use statsmodels to export reproducible statistical summaries for manuscripts?

Yes, you can use statsmodels to export reproducible statistical summaries for manuscripts by generating machine-readable CSV and JSON outputs containing coefficient tables, inference results, and model diagnostics.

What is the best way to compare two experimental groups using a t-test on tabular data?

The best way to compare two experimental groups using a t-test on tabular data is to run an independent t-test on your CSV file, reporting effect sizes and p-values, then save the output to JSON and CSV formats.

Does this statistical modeling workflow support continuous, binary, and count data?

Yes, this statistical modeling workflow supports continuous, binary, and count data by applying appropriate regression models such as OLS, logistic, and Poisson regression to compute inference and diagnostics.

Do I need pandas and scipy installed to fit statistical models for scientific research?

Yes, you need pandas and scipy installed alongside numpy and statsmodels to handle core statistical computations, data manipulation, and modeling workflows for scientific research.

How do I generate machine-readable outputs for statistical tests and regression models?

Generate machine-readable outputs for statistical tests and regression models by automating the analysis workflow to export coefficient tables and inference results directly into CSV and JSON files.