calculate_growth_rate
Compute absolute and percentage changes for economic time series from FRED. Select comparison by calendar date to avoid off-by-one errors from missing values.
Instructions
Calculate absolute and percentage change for a FRED series.
The comparison observation is selected by calendar date rather
than only by list position, which avoids off-by-one errors when
observations contain missing values.
Examples:
CPIAUCSL with periods=12 for year-over-year change.
GDP with periods=1 for quarter-over-quarter change.
UNRATE with periods=1 for month-over-month change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| periods | No | ||
| series_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||