Package: scrutiny 1.0.0

scrutiny: Error Detection in Science

Test published summary statistics for consistency (Brown and Heathers, 2017, <doi:10.1177/1948550616673876>; Allard, 2018, <https://aurelienallard.netlify.app/post/anaytic-grimmer-possibility-standard-deviations/>; Heathers and Brown, 2019, <https://osf.io/5vb3u/>). The package also provides infrastructure for implementing new error detection techniques.

Authors:Lukas Jung [aut, cre], Aurélien Allard [ctb], Nicolas Roman Posner [ctb]

scrutiny_1.0.0.tar.gz
scrutiny_1.0.0.zip(r-4.7-any)scrutiny_1.0.0.zip(r-4.6-any)scrutiny_1.0.0.zip(r-4.5-any)
scrutiny_1.0.0.tgz(r-4.6-any)scrutiny_1.0.0.tgz(r-4.5-any)
scrutiny_1.0.0.tar.gz(r-4.7-any)scrutiny_1.0.0.tar.gz(r-4.6-any)
scrutiny_1.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
scrutiny/json (API)

# Install 'scrutiny' in R:
install.packages('scrutiny', repos = c('https://lhdjung.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/lhdjung/scrutiny/issues

Pkgdown/docs site:https://lhdjung.github.io

Datasets:
  • pigs1 - Means and sample sizes for GRIM-testing
  • pigs2 - Percentages and sample sizes for GRIM-testing
  • pigs3 - Binary means and standard deviations for DEBIT-testing
  • pigs4 - Data with duplications
  • pigs5 - Means, SDs, and sample sizes for GRIMMER-testing

On CRAN:

Conda:

7.94 score 11 stars 90 scripts 1.3k downloads 85 exports 30 dependencies

Last updated from:58f69dcb41. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK419
source / vignettesOK213
linux-releaseOK395
macos-releaseOK507
macos-oldrelOK496
windows-develOK612
windows-releaseOK495
windows-oldrelOK523
wasm-releaseOK102

Exports:absorb_key_argsadd_up_toadd_up_to_mapauditaudit_cols_minimalaudit_seqaudit_total_nbefore_parenscheck_mapper_input_colnamesdebitdebit_closestdebit_explaindebit_mapdebit_map_seqdebit_map_total_ndebit_plotdebit_plot_linedebit_valuesdecimal_placesdecimal_places_dfdispersedisperse_totaldisperse2duplicate_countduplicate_count_colpairduplicate_tallyexplain_mapexplain_printfunction_mapfunction_map_seqfunction_map_total_ngrimgrim_binomialgrim_binomial_powergrim_closestgrim_exp_incongrim_explaingrim_granularitygrim_gridgrim_itemsgrim_mapgrim_map_seqgrim_map_total_ngrim_plotgrim_plot_gridgrim_plot_linegrim_plot_ratesgrim_probabilitygrim_totalgrim_valuesgrimmergrimmer_closestgrimmer_explaingrimmer_mapgrimmer_map_seqgrimmer_map_total_ngrimmer_plot_linegrimmer_valuesinside_parensis_map_basic_dfis_map_dfis_map_seq_dfis_map_total_n_dfis_numeric_likeis_seq_ascendingis_seq_descendingis_seq_dispersedis_seq_linearmanage_helper_colpercentage_ofpercentage_of_mappercentage_of_map_seqrestore_zerosrestore_zeros_dfreverse_map_seqreverse_map_total_nrow_to_colnamesscrutiny_metasd_binary_0_nsd_binary_1_nsd_binary_groupssd_binary_mean_nseq_disperseseq_disperse_dfsplit_by_parens

Dependencies:clicpp11dplyrfarvergenericsggplot2gluegtableisobandlabelinglifecyclemagrittrpillarpkgconfigpurrrR6RColorBrewerrlangroundworkS7scalesstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithr

Consistency tests in depth
Introduction | 1. Single-case | 2. Vectorized | 3. Basic mapper | Creating basic mappers with function_map() | Context and export | Identifying columns | A variable number of key columns | 4. audit() and explain_map() methods | Basics | Practical steps | Documentation | Explanations | 5. Visualization function | 6. Sequence mapper | Dispersing single values | 7. Total-n mapper | Wrap-up | References

Last update: 2026-11-11
Started: 2024-02-23

Data wrangling
Trailing zeros | Motivation | Enter numbers from PDF | Split strings by parentheses | Basic usage | Column name suffixes | Extract substrings from before_parens() and inside_parens() | Replace column names by row values

Last update: 2026-11-11
Started: 2021-11-18

DEBIT
Single cases: debit() | Many cases: debit_map() | Explaining consistency results | Single value sets in detail | Summaries with audit() | Visualization with debit_plot() | Values around the reported ones: debit_map_seq() | Unknown group sizes: debit_map_total_n() | Interpreting results | References

Last update: 2026-11-11
Started: 2021-11-18

Duplication analysis
Frequency tabulation with duplicate_count() | Counting by column pair with duplicate_count_colpair() | Counting by observation with duplicate_tally()

Last update: 2026-11-11
Started: 2023-08-08

GRIM basics
Basic GRIM testing | Single cases: grim() | Many cases: grim_map() | Scale items | Percentages | Explaining consistency results | Summaries with audit() | Visualization with grim_plot_grid() | Interpreting results | Going further | References

Last update: 2026-11-11
Started: 2021-11-18

GRIM in depth
Behind a test result | Reconstructed values | Recorded settings | Achievable means | A single value set: grim_plot_line() | The grid behind grim_plot_grid() | Values around the reported ones: grim_map_seq() | Summaries with audit() | Plotting dispersed values | Unknown group sizes: grim_map_total_n() | GRIM statistics | The probability of GRIM inconsistency | A study's rate of inconsistency | Granularity | References

Last update: 2026-11-11
Started: 2026-11-11

GRIMMER basics
Basic GRIMMER testing | Single cases: grimmer() | Many cases: grimmer_map() | Scale items | Explaining consistency results | Summaries with audit() | Interpreting results | Going further | References

Last update: 2026-11-11
Started: 2022-08-14

GRIMMER in depth
Sample or population SD | Bounded scales | Achievable means and SDs | A single value set: grimmer_plot_line() | Many value sets: grim_plot_grid() | Values around the reported ones: grimmer_map_seq() | Unknown group sizes: grimmer_map_total_n()

Last update: 2026-11-11
Started: 2026-11-11

Percentages and sums
Percentages | Single cases: percentage_of() | Many cases: percentage_of_map() | Investigating possible causes of inconsistencies | Sums | Single cases: add_up_to() | Many cases: add_up_to_map()

Last update: 2026-11-11
Started: 2026-11-11

Related software
Established methods | Up and coming | Possibly helpful

Last update: 2026-11-11
Started: 2021-12-01

Technical notes
Missing values | Rounding | Exact arithmetic | Decimal places

Last update: 2026-11-11
Started: 2026-11-11

Readme and manuals

Help Manual

Help pageTopics
Rename key columns according to the key argumentsabsorb_key_args
Do reported counts add up to their total?add_up_to
Test whether reported counts add up to their totalsadd_up_to_map
Summarize scrutiny objectsaudit
Compute minimal 'audit()' summariesaudit_cols_minimal
Classes of sequence and total-n mapper outputaudit-special
Check that a mapper's input has the right column namescheck_mapper_input_colnames
Is an object the output of a mapper function?data-frame-predicates is_map_basic_df is_map_df is_map_seq_df is_map_total_n_df
The DEBIT (descriptive binary) testdebit
Explain a DEBIT test step by stepdebit_explain
DEBIT-test many cases at oncedebit_map
DEBIT-test values around the reported onesdebit_map_seq
DEBIT-test with hypothetical group sizesdebit_map_total_n
Visualize DEBIT resultsdebit_plot
Visualize the standard deviations that DEBIT admitsdebit_plot_line
Achievable means and SDs of binary datadebit_closest debit_values
Count decimal placesdecimal_places
Vary hypothetical group sizesdisperse disperse2 disperse_total
Count duplicate valuesduplicate_count
Count duplicate values by column pairduplicate_count_colpair
Count duplicates at each observationduplicate_tally
Explain mapper results row by rowexplain_map
Print the explanations of mapper resultsexplain_print
Create new *_map() functionsfunction_map
Create new *_map_seq() functionsfunction_map_seq
Create new *_map_total_n() functionsfunction_map_total_n
The GRIM test (granularity-related inconsistency of means)grim
Poisson binomial test for the rate of GRIM consistencygrim_binomial
Power of the GRIM binomial testgrim_binomial_power
Explain a GRIM test step by stepgrim_explain
Granularity of non-continuous scalesgrim_granularity
GRIM results on a grid of sample sizes and meansgrim_grid
GRIM-test many cases at oncegrim_map
GRIM-test values around the reported onesgrim_map_seq
GRIM-test with hypothetical group sizesgrim_map_total_n
Visualize GRIM test resultsgrim_plot_grid
Visualize the means that GRIM admitsgrim_plot_line
Compare GRIM inconsistency rates to random meansgrim_plot_rates
Achievable means behind a reported onegrim_closest grim_values
Possible GRIM inconsistenciesgrim-stats grim_exp_incon grim_total
The GRIMMER test (granularity-related inconsistency of means mapped to error repeats)grimmer
Explain a GRIMMER test step by stepgrimmer_explain
GRIMMER-test many cases at oncegrimmer_map
GRIMMER-test values around the reported onesgrimmer_map_seq
GRIMMER-test with hypothetical group sizesgrimmer_map_total_n
Visualize the standard deviations that GRIMMER admitsgrimmer_plot_line
Achievable means and SDs behind a reported pairgrimmer_closest grimmer_values
Manage a helper columnmanage_helper_col
Extract substrings from before and inside parenthesesbefore_parens inside_parens parens-extractors
Is a reported percentage consistent with its count?percentage_of
Test many reported percentages against their countspercentage_of_map
Test percentages against their counts with values around the reported onespercentage_of_map_seq
Means and sample sizes for GRIM-testingpigs1
Percentages and sample sizes for GRIM-testingpigs2
Binary means and standard deviations for DEBIT-testingpigs3
Data with duplicationspigs4
Means, SDs, and sample sizes for GRIMMER-testingpigs5
Reconstruct the input of a sequence mapperreverse_map_seq
Reconstruct the input of a total-n mapperreverse_map_total_n
Turn row values into column namesrow_to_colnames
Read the settings a mapper recorded on its outputscrutiny_meta
Standard deviation of binary datasd-binary sd_binary_0_n sd_binary_1_n sd_binary_groups sd_binary_mean_n
Sequences dispersed around a valueseq_disperse seq_disperse_df
Split columns by parentheses, brackets, braces, or similarsplit_by_parens