naep_gap_variable_jurisdiction
Compare how achievement gaps between demographic groups differ across US states using NAEP data. Returns each state's group gap and the difference between them to highlight disparity variations.
Instructions
Compare how achievement gaps between demographic groups differ across states. Example: Is the poverty gap in math bigger in Mississippi than Massachusetts? Returns innerdiff1 (group gap for focal jurisdiction), innerdiff2 (group gap for target), and the gap between them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | Year: '2022'. Default: most recent. | |
| grade | Yes | Grade: 4, 8, or 12. | |
| subject | Yes | Subject: 'reading', 'math', 'science', etc. Aliases accepted. | |
| variable | Yes | Non-TOTAL variable with 2+ categories: 'SDRACE', 'GENDER', 'SLUNCH3' | |
| jurisdictions | Yes | 2+ jurisdiction codes comma-separated: 'MA,MS' or 'NP,CA,TX' |