income_comparison
Compare income between 2017 and 2023 for matched survey respondents. Analyze income change, poverty transitions, or full summary with optional filters and grouping variables.
Instructions
Compare income between 2017 and 2023 for matched respondents.
Merges the 2017 income module with the 2023 respondent data on folio.
Args: metric: What to compute. - "change": Income change statistics (absolute and relative). - "poverty": Poverty transition rates using CEEY poverty lines. - "summary": Full summary with both income change and poverty. filter: Optional filter expression (e.g., "sexo == 1", "rururb == 1"). by: Optional grouping variable (e.g., "sexo", "rururb", "cohorte").
Returns markdown summary with weighted statistics on temporal income dynamics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metric | No | change | |
| filter | No | ||
| by | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |