naep_compare_groups
Compare NAEP scores by race, gender, and poverty status, using significance testing to reveal achievement gaps.
Instructions
Compare NAEP scores across demographic groups (race, gender, poverty) with significance testing. Shows achievement gaps between groups (e.g., White vs Black, Male vs Female, eligible vs not eligible for free lunch).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | Year: '2022'. Default: most recent | |
| grade | Yes | Grade: 4, 8, or 12. Math: 4,8 only. Economics/TEL/Music: 8 or 12 only. | |
| subject | Yes | Subject: 'reading', 'math', 'science', 'writing', 'civics', 'history', 'geography', 'economics', 'tel', 'music'. Aliases accepted. | |
| variable | Yes | 'SDRACE' (race gap), 'GENDER' (gender gap), 'SLUNCH3' (poverty gap), 'IEP' (disability gap), 'LEP' (ELL gap) | |
| jurisdiction | No | 'NP' (default), or state codes |