← ClaudeAtlas

quant-two-group-indlisted

Compare a continuous or ordinal variable between two independent groups. Uses a permutation Welch t-test (robust to unequal variances and non-normality) as the primary method. Reports effect size (Hedges' g) with bootstrap CI, plus full assumption checks, visualizations, and plain-language interpretation. Triggers: "compare two groups", "difference between groups", "independent samples", "group comparison", "A/B comparison", "male vs female", "test vs control", "two-group t-test", "between-group difference", "is there a difference between".
JSerek/quant-skills · ★ 0 · Data & Documents · score 70
Install: claude install-skill JSerek/quant-skills
# quant-two-group-ind — Two Independent Groups Comparison ## Objective Test whether two independent groups differ on a continuous or ordinal outcome variable. The primary method is the permutation Welch t-test — it makes no assumptions about equal variances or normality of residuals, making it suitable for most market research data. --- ## Pre-flight **Required inputs:** - `output/data/cleaned_data.csv` - `output/data/column_metadata.json` **Minimum requirements:** - Outcome variable: ordinal or continuous (from metadata) - Grouping variable: exactly 2 unique non-NA values - Minimum n per group: 10 (warn), 20 (preferred) - If grouping variable has >2 unique values: redirect to `/quant-multi-group-ind` --- ## Pipeline ### Step 1 — Load data and metadata ```python # See references/pipeline.py → load_prepared_data() ``` Identify candidate outcome and grouping variables from metadata. --- ### Step 2 — AskUserQuestion: select variables ``` AskUserQuestion: question: "Which variable would you like to compare between groups?" header: "Outcome variable" options: [list all ordinal/continuous columns with their labels] ``` ``` AskUserQuestion: question: "Which variable defines the two groups?" header: "Grouping variable" options: [list all binary/nominal columns with their labels + unique value preview] ``` If the grouping column has >2 unique values, ask the user to either: - Filter to 2 specific groups - Or redirect to `/quant-multi-group-ind` --- ### Ste