trend_test
Estimate trends in time-series data using OLS, robust Theil-Sen, and Mann-Kendall tests.
Instructions
Estimate trend three ways: OLS, robust Theil-Sen, and the Mann-Kendall test.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| series_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| direction | Yes | 'increasing', 'decreasing', or 'no significant trend'. | |
| series_id | Yes | ||
| mann_kendall | Yes | A single statistical test outcome. | |
| ols_r_squared | Yes | ||
| change_over_span | Yes | Theil-Sen slope × (n-1): total modeled change. | |
| theil_sen_ci_low | Yes | ||
| theil_sen_ci_high | Yes | ||
| ols_slope_per_step | Yes | ||
| theil_sen_slope_per_step | Yes |