Trend analysis
trend_analysisAnalyze displacement metric trends for a country: yearly series, year-over-year changes, linear trend, CAGR, and anomalous years.
Instructions
Analyse how a displacement metric evolved for a country: yearly series, year-over-year changes, linear trend (slope, R²), CAGR and statistically anomalous years. Default: refugees hosted, last 10 years.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | "asylum" = people hosted IN the country; "origin" = people displaced FROM the country | |
| metric | No | Metric: refugees, asylum_seekers, idps, stateless... (default refugees) | |
| country | Yes | Country name or ISO3 code, e.g. "Egypt", "EGY", "syria" | |
| year_to | No | Last year of the range (default: latest available) | |
| year_from | No | First year of the range (default: 10 years back) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | ||
| trend | Yes | ||
| metric | Yes | ||
| series | Yes | ||
| source | Yes | ||
| country | Yes | ||
| anomalies | Yes | ||
| country_code | Yes | ||
| year_over_year | Yes |