correlate
Compute Pearson and Spearman correlation between two indicators for a single entity, returning r, p-value, sample size, and a human-readable interpretation. Use to answer whether two measures move together.
Instructions
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 |
|---|---|---|---|
| entity | Yes | Entity code (e.g. DEU) | |
| a | Yes | First indicator ID | |
| b | Yes | Second indicator ID | |
| time | No | Optional time range: "2010-2023" |