This Computational Provenance Record documents the statistical computing environment, software dependencies, computational provenance, and bibliographic references associated with the RAISINS Growth Rate Estimation and Trend Analysis module. It is intended to support computational reproducibility and software transparency. Detailed statistical methodology, mathematical derivations, and user guidance are provided separately in the official module documentation.
Any issues or updates required please comment here
Pettitt statistic and approximate p-value (closed form)
4 Default Methods & Parameters
Analysis
Default Method / Value
Compound growth rate
Log-linear trend on year; CGR = 100 (exp(b) − 1) % per year, with t-test and confidence interval. Level of significance α = 0.05 (selectable: 0.01, 0.10)
CAGR
100 ((ylast / yfirst)1/t − 1), with t = last year − first year
AAGR
Mean of the percentage changes between consecutive years
Trend fitting
Linear, quadratic, cubic and exponential models; lowest AICc selected; AICc and R-squared compared on the original scale
Mann-Kendall test
Tie-corrected variance and continuity-corrected Z; exact p-value with fewer than 10 years and no ties, otherwise two-sided normal approximation
Sen's slope
Median of all pairwise slopes, with a rank-based confidence interval
Instability
Coefficient of variation and Cuddy-Della Valle Index, CDVI = CV √(1 − adjusted R2), from a linear trend
Area-yield decomposition
Area, yield and interaction effects between the first and last years
Change point
Pettitt test with its approximate p-value
Innovative trend analysis
Sorted first half of the years against the sorted last half
5 R Code for Key Analytical Steps
The code below shows the principal calculations so that reviewers can verify reported results. Set year and y to one series in time order, with consecutive years and no missing values.
# area and production: first and last yearsyield <- production / areaeffects <-c(Area = yield[1] *diff(area),Yield = area[1] *diff(yield),Interaction =diff(area) *diff(yield),Total =diff(production))
5.6 Change Point
U <-sapply(1:(n -1), function(k) sum(sign(outer(y[1:k], y[(k +1):n], function(a, b) b - a))))K <-max(abs(U))change_after <- year[which.max(abs(U))]pettitt_p <-min(1, 2*exp(-6* K^2/ (n^3+ n^2)))
RAISINS uses R for all its statistical computations. Principal statistical functions are listed with illustrative examples. Exact reproduction also requires the release source, input data, analysis settings and runtime environment. These results are then organized and formatted on the RAISINS website along with visualisation to make them easier to use and interpret. RAISINS also has its own custom-built statistical tools for managing workflows, validating results, and generating reports. Details of these are not fully covered here, they’re shared with outside researchers only on request, and are subject to licensing terms.
7 Package References
R Core Team. (2025). R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria. https://www.R-project.org/
Cuddy, J. D. A., & Della Valle, P. A. (1978). Measuring the instability of time series data. Oxford Bulletin of Economics and Statistics, 40(1), 79–85. https://doi.org/10.1111/j.1468-0084.1978.mp40001006.x
Gilbert, R. O. (1987). Statistical Methods for Environmental Pollution Monitoring. Van Nostrand Reinhold.
Hurvich, C. M., & Tsai, C.-L. (1989). Regression and time series model selection in small samples. Biometrika, 76(2), 297–307. https://doi.org/10.1093/biomet/76.2.297
Kendall, M. G. (1975). Rank Correlation Methods (4th ed.). Charles Griffin.
Mann, H. B. (1945). Nonparametric tests against trend. Econometrica, 13(3), 245–259. https://doi.org/10.2307/1907187
Pettitt, A. N. (1979). A non-parametric approach to the change-point problem. Journal of the Royal Statistical Society: Series C (Applied Statistics), 28(2), 126–135. https://doi.org/10.2307/2346729
Sen, P. K. (1968). Estimates of the regression coefficient based on Kendall’s tau. Journal of the American Statistical Association, 63(324), 1379–1389. https://doi.org/10.1080/01621459.1968.10480934
Şen, Z. (2012). Innovative trend analysis methodology. Journal of Hydrologic Engineering, 17(9), 1042–1046. https://doi.org/10.1061/(ASCE)HE.1943-5584.0000556