R port of morie.tps_temporal. Four jurisdiction-agnostic
callables operating on a Toronto Police Service-shaped
data.frame: yearly trend, seasonal cyclic stats,
Pettitt-style change-point on yearly counts, and an ARIMA(1,1,1)
forecast on monthly counts. All functions return a multi-section
morie_rich_result list so output can be printed directly
to a notebook.
Details
Functions
morie_tps_year_over_year_trend: OLS slope / intercept / R-squared on yearly incident counts.morie_tps_seasonal_pattern: month / DOW / hour cyclic counts plus chi-square uniformity tests.morie_tps_changepoint_detection: Pettitt's non-parametric change-point on yearly counts (no external change-point dependency).morie_tps_arima_forecast: ARIMA(1,1,1) forecast on monthly counts viastats::arima.