Compare countries
compare_countriesCompare displacement metrics like refugees, asylum seekers, or IDPs across 2–5 countries over a chosen year range. Normalize by population or GDP for per capita comparisons.
Instructions
Compare a displacement metric across 2–5 countries over a year range. Defaults to refugees hosted (role "asylum") over the last 10 years. Set normalize_by to compare per 1,000 residents or per US$1bn GDP instead of absolute numbers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | "asylum" = people hosted IN the country; "origin" = people displaced FROM the country | |
| metric | No | Metric to compare, e.g. refugees, asylum_seekers, idps (default: refugees) | |
| year_to | No | Last year of the range (default: latest available) | |
| countries | Yes | Two to five countries to compare | |
| year_from | No | First year of the range (default: 10 years back) | |
| normalize_by | No | Normalize values by a denominator: "population" → per 1,000 residents, "gdp" → per US$1bn GDP. Requires the worldbank provider. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | ||
| unit | Yes | ||
| metric | Yes | ||
| series | Yes | ||
| source | Yes | ||
| denominator | No | ||
| normalize_by | Yes |