statistical-design-audit

Validate statistical designs for TDL tasks by checking denominators, p-values, and estimands.

1|Updated Dec 13, 2025
One-click install
npx skills add https://github.com/stephendor/TDL --skill statistical-design-audit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: statistical-design-audit
Source: https://github.com/stephendor/TDL/tree/main/.agents/skills/statistical-design-audit
Command: npx skills add https://github.com/stephendor/TDL --skill statistical-design-audit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill ensures the correctness of statistical designs used in TDL tasks, preventing errors in inference before they reach production.

Core Features & Use Cases

  • Audit Dimensions: Checks various aspects like denominator correctness, p-value formula, and estimand validity.
  • Audit Dimensions: Includes checks on clustering, null exchangeability, and Markov order.
  • Output Format: Provides a clear PASS/CONCERN/FAIL output with actionable insights for improvement.
  • Use Case: For a task analyzing a panel dataset with multiple comparisons, the skill will validate the denominators, corrections for multiple comparisons, and the appropriateness of the bootstrap method.

Quick Start

Run the statistical-design-audit skill to validate the statistical design of your task and receive immediate feedback.

Frequently Asked Questions about statistical-design-audit

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

FAQPage Schema
How do I validate statistical design before running inference on a panel dataset?

Auditing multiple comparisons requires checking denominator correctness and applying appropriate corrections. The audit validates your p-value formulas and bootstrap methods against the design's statistical assumptions, returning a PASS, CONCERN, or FAIL status with improvement insights.

What is inference validity and how does it relate to permutation inference?

Permutation inference requires strict null exchangeability and correct denominators to be valid. The audit checks these clustering and exchangeability assumptions to verify that your permutation design matches the statistical properties of the data.

Can I use statistical audit checks for complex models with multiple comparisons?

Yes, statistical audits are designed for complex models involving multiple comparisons. The audit checks denominators, validates estimands, and verifies that bootstrap methods and multiple comparison corrections are appropriately applied.

Why does my p-value analysis fail on clustered data?

P-value analysis fails on clustered data when the denominator formula ignores the data's clustering structure. The audit detects this mismatch by checking null exchangeability and Markov order, returning a FAIL status with insights to fix the denominators.

When should I audit my statistical design for data validity?

You should audit statistical design for data validity before trusting any inference results. The audit evaluates denominators, p-value formulas, and multiple comparison corrections to ensure the design matches statistical assumptions and prevents inference errors.

What is the best way to check estimand validity in statistical design?

The best way to check estimand validity is to run a statistical design audit that evaluates denominators, p-value formulas, and multiple comparisons. This ensures the estimand aligns with the statistical assumptions and prevents inference errors before production.