recommend_test
Answer a few data characteristics to get the right statistical test to call, with reasoning, alternatives if assumptions are shaky, and companion analyses. Pure decision logic—no statistics computed.
Instructions
Not sure which rigor tool fits your question? Answer a few characteristics of the data and get back which tool to call, why, what to call instead if this test's assumptions look shaky, and what to run alongside it (an effect size, a power calculation, a natural follow-up). Every test in this package already documents this guidance in its own docstring for the sibling comparisons it knows about -- this tool exists so you don't have to have already read every other tool's docstring to find the one relevant cross-reference. Pure decision logic, no statistics computed here.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paired | No | for n_groups=2 (continuous/rank_or_ordinal/proportion): were the same subjects measured twice, rather than two independent groups? | |
| n_groups | No | 1 = one sample vs. a hypothesized value; 2 = two groups/conditions; 3+ = three or more groups. Ignored when testing_association=true. | |
| outcome_type | Yes | what kind of thing is being compared/measured: "continuous" (means), "proportion" (rates), "count_or_category" (category counts / contingency tables), or "rank_or_ordinal" (ordinal data -- always routed to a rank-based test) | |
| small_or_skewed | No | is the sample small, visibly skewed, or outlier-heavy? nudges toward the non-parametric alternative | |
| checked_repeatedly | No | will this result be checked more than once as data accumulates (e.g. a live experiment's dashboard) rather than analyzed once against a pre-committed sample size? routes to a peeking-safe sequential_* tool instead, where one exists | |
| testing_association | No | this is "does x relate to/predict y" for two continuous or ranked variables, not a group comparison -- routes to correlation/regression instead | |
| two_categorical_variables | No | for outcome_type="count_or_category": testing association between two categorical variables (a contingency table) rather than counts against an expected distribution? |