naep_gap_variable_years
Compare demographic achievement gaps across years to see if gaps are widening or narrowing. Get group gaps for two years plus the change.
Instructions
Compare how achievement gaps between demographic groups change over time. Example: Is the racial achievement gap in reading getting bigger or smaller since 2017? Returns innerdiff1 (group gap for focal year), innerdiff2 (group gap for target year), and the gap between them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grade | Yes | Grade: 4, 8, or 12. | |
| years | Yes | 2+ years comma-separated: '2022,2019' or '2022,2017' | |
| subject | Yes | Subject: 'reading', 'math', 'science', etc. Aliases accepted. | |
| variable | Yes | Non-TOTAL variable with 2+ categories: 'SDRACE', 'GENDER', 'SLUNCH3' | |
| jurisdiction | No | 'NP' (default), or state/district code |