grimmer function

The GRIMMER test (granularity-related inconsistency of means mapped to error repeats)