The package is now released under the MIT license.
Breaking changes
-
The
ratiocolumn in the output ofgrim_map()andgrim_map_seq()was replaced by aprobabilitycolumn. This means:-
Numerically, the only difference is that
probabilityis zero wheneverratiowas negative. -
Conceptually, it is much easier to interpret: it is the probability that a reported mean or percentage of integer data that has a specific number of decimal places but is otherwise random is GRIM-inconsistent with the reported sample size.
For example,
probabilityis0.6for a mean of1.23and a sample size of40. The same is true for any other mean with two decimal places. Thus, a randomly chosen mean with two decimal places, ostensibly derived from integer data, has a 0.6 probability of being GRIM-inconsistent with the reported sample size.
-
-
In the functions around
grim_ratio(), thexargument must now be a string. This is consistent withgrim_map(),unround(), etc.; and it prevents erroneous results that could previously occur by omitting trailing zeros. -
The GRIMMER implementation was debugged, so that
grimmer_map()etc. may now yield different results in a few cases. In particular, theitemsargument now works correctly, thanks to Aurélien Allard and Lukas Wallrich (#58). -
is_seq_dispersed()now correctly returnsFALSEif different numbers of missing values at the start and end ofxmean thatxcannot be dispersed aroundfrom.
New features
- The
probabilitycolumn (see above) is created by a new function,grim_probability().
Lifecycle updates
Deprecated
-
As a consequence of the above, the
show_probargument ofgrim_map()is now deprecated and will be removed in a future version. It no longer has any effect. -
grim_ratio_upper()is deprecated and will be removed in a future version. It no longer seems very interesting (and likely never was), especially now that the GRIM ratio in general has taken a backseat. -
All 15 (!) functions around
is_subset_of()are deprecated and will be removed in a future version. In truth, they were always poorly written and widely out of scope for scrutiny.
Removed
All of these had been deprecated since scrutiny 0.3.0:
-
audit_list()was removed. -
The
separgument inrestore_zeros()andrestore_zeros_df()was removed. -
The
numeric_onlyargument induplicate_count()andduplicate_detect()was removed. -
The
na.rmargument induplicate_count_colpair()was removed.