Pettitt-style change-point on yearly incident counts
Source:R/tps_temporal.R
morie_tps_changepoint_detection.RdImplements Pettitt's non-parametric change-point statistic U_t = sum_i sum_j sign(x_i - x_j) for i <= t < j, then reports the year maximising |U_t| and an approximate p-value. No external change-point dependency is required.