correlate
Compute Pearson + Spearman correlation between two indicators for one entity. Returns r, p-value, n, and human-readable interpretation. Use for "does X move with Y?" questions. Includes causation disclaimer automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | First indicator ID | |
| b | Yes | Second indicator ID | |
| full | No | Return the full raw time series (heavy, many tokens). Default false → you get only the summary/stats, which is enough to ANSWER a question. Set true only when you must plot or export every point. | |
| time | No | Optional time range: "2010-2023" | |
| entity | Yes | Entity code (e.g. DEU) |