NEWS.md
GRIM_test()
to more direct calculation rather than iterative check to increase transparency and efficiency. If requested to return the nearest possible means, the function now also correctly returns two values if there are two equidistant values. (For users wishing to use the original algorithm, it is presently retained as an unexported function that can be called with rsprite2:::GRIM_test_old()
.)GRIMMER_test()
to account for the fact that multiple exact means may be compatible with the reported means, if the mean is reported to a lower precision than the standard deviation. The previous version missed some valid SDs in this rare case. Also optimised the implementation of the algorithm to catch special cases explicitly and run a lot faster.boundary_test()
function that tests whether a standard deviation is within the possible range. This tests was already part of GRIMMER, but is now exported and separately documented for transparency. The underlying function to calculate SD limits now also accounts for various rounding choices for values ending in .5, i.e. up, down or to even, to reduce the risk of false positives, and is vectorised to increase speed.GRIMMER_test()
function, which could lead to false positives in some cases.GRIMMER_test()
now supports multi-item scales, as Aurélien Allard kindly extended his algorithmGRIMMER_test()
) to catch impossible standard deviations, using the algorithm developed by Aurélien Allard