correlate
Compute Pearson and Spearman correlations between two indicators for one entity, returning r, p-value, n, and plain-language interpretation of their relationship.
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" |