S3 generic function that computes and returns indices of flatness of one or several (rank) histograms, presented in Wilks (2019).
flatness_indices(rkhists, ...)an object containing (rank) histograms
other arguments
the expected returned object is a matrix, with one flatness index in each column for each rank histogram (row-wise). The columns should be named, with "chisq" for the chi-square statistics, "RI" for the reliability index and "entropy" for the entropy.
Currently the implemented flatness indices are the chi-square statistics, the reliability index and the entropy.
Wilks, D. S. "Indices of rank histogram flatness and their sampling properties." Monthly Weather Review 147.2 (2019): 763-769. doi:https://doi.org/10.1175/MWR-D-18-0369.1