← ClaudeAtlas

quant-multi-group-indlisted

Compare a continuous or ordinal variable across three or more independent groups. Uses a permutation Welch F-test (robust to unequal variances) as the omnibus test, followed by MANDATORY pairwise post-hoc comparisons with Benjamini-Hochberg FDR correction and Hedges' g for each pair. Effect sizes are reported for every comparison. Triggers: "compare three groups", "three or more groups", "multiple groups", "one-way ANOVA", "Kruskal-Wallis", "compare markets", "compare brands", "compare segments", "multi-group comparison", "which groups differ", "group differences across categories".
JSerek/quant-skills · ★ 0 · Data & Documents · score 70
Install: claude install-skill JSerek/quant-skills
# quant-multi-group-ind — Three or More Independent Groups ## Objective Test whether an outcome variable differs across 3 or more independent groups, identify *which* specific groups differ and *by how much*. The omnibus test tells you whether any difference exists; the mandatory post-hoc analysis tells you where. --- ## Pre-flight **Required inputs:** - `output/data/cleaned_data.csv` - `output/data/column_metadata.json` **Requirements:** - Outcome variable: ordinal or continuous - Grouping variable: 3–15 unique non-NA values (warn above 10) - Minimum n per group: 10 (warn), 20 (preferred) - If grouping variable has exactly 2 values: redirect to `/quant-two-group-ind` --- ## Pipeline ### Step 1 — Load data and metadata ```python # See references/pipeline.py → load_prepared_data() ``` --- ### Step 2 — AskUserQuestion: select variables ``` AskUserQuestion: question: "Which variable would you like to compare across groups?" header: "Outcome variable" options: [list ordinal/continuous columns] ``` ``` AskUserQuestion: question: "Which variable defines the groups?" header: "Grouping variable" options: [list nominal/binary columns — show unique value count for each] ``` If grouping variable has >15 unique values, AskUserQuestion: - "This variable has {n} unique values. Please confirm you want to compare all of them, or select a subset." (with option to continue or re-select) --- ### Step 3 — AskUserQuestion: select method ``` AskUserQuestion: questi