Package: scrutiny 0.4.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]

scrutiny_0.4.0.tar.gz
scrutiny_0.4.0.zip(r-4.5)scrutiny_0.4.0.zip(r-4.4)scrutiny_0.4.0.zip(r-4.3)
scrutiny_0.4.0.tgz(r-4.4-any)scrutiny_0.4.0.tgz(r-4.3-any)
scrutiny_0.4.0.tar.gz(r-4.5-noble)scrutiny_0.4.0.tar.gz(r-4.4-noble)
scrutiny_0.4.0.tgz(r-4.4-emscripten)scrutiny_0.4.0.tgz(r-4.3-emscripten)
scrutiny.pdf |scrutiny.html
scrutiny/json (API)
NEWS

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

Peer review:

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

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

On CRAN:

112 exports 4 stars 1.19 score 51 dependencies 35 scripts 316 downloads

Last updated 7 months agofrom:a9c4fbe1f5. Checks:OK: 1 NOTE: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 22 2024
R-4.5-winNOTEAug 22 2024
R-4.5-linuxNOTEAug 22 2024
R-4.4-winNOTEAug 22 2024
R-4.4-macNOTEAug 22 2024
R-4.3-winNOTEAug 22 2024
R-4.3-macNOTEAug 22 2024

Exports::=.data%>%anti_truncas_labelas_nameauditaudit_cols_minimalaudit_listaudit_seqaudit_total_nbefore_parenscheck_audit_specialcheck_mapper_input_colnamesdebitdebit_mapdebit_map_seqdebit_map_total_ndebit_plotdecimal_placesdecimal_places_dfdecimal_places_scalardispersedisperse_totaldisperse2duplicate_countduplicate_count_colpairduplicate_detectduplicate_tallyenquoenquosfunction_mapfunction_map_seqfunction_map_total_ngrimgrim_granularitygrim_itemsgrim_mapgrim_map_seqgrim_map_total_ngrim_plotgrim_ratiogrim_ratio_uppergrim_totalgrimmergrimmer_mapgrimmer_map_seqgrimmer_map_total_ninside_parensis_equal_setis_equal_set_valsis_equal_set_vecsis_map_basic_dfis_map_dfis_map_seq_dfis_map_total_n_dfis_numeric_likeis_proper_subset_ofis_proper_subset_of_valsis_proper_subset_of_vecsis_proper_superset_ofis_proper_superset_of_valsis_proper_superset_of_vecsis_seq_ascendingis_seq_descendingis_seq_dispersedis_seq_linearis_subset_ofis_subset_of_valsis_subset_of_vecsis_superset_ofis_superset_of_valsis_superset_of_vecsmanage_helper_colmanage_key_colnamesreroundreround_to_fractionreround_to_fraction_levelrestore_zerosrestore_zeros_dfreverse_map_seqreverse_map_total_nround_anti_truncround_ceilinground_downround_down_fromround_floorround_truncround_upround_up_fromrounding_biasrow_to_colnamessd_binary_0_nsd_binary_1_nsd_binary_groupssd_binary_mean_nseq_disperseseq_disperse_dfseq_distanceseq_distance_dfseq_endpointseq_endpoint_dfseq_lengthseq_length<-seq_test_rankingsplit_by_parensunnest_consistency_colsunroundwrite_doc_auditwrite_doc_audit_seqwrite_doc_audit_total_nwrite_doc_factory_map_conventions

Dependencies:cacliclustercodetoolscolorspacecorrrcpp11dplyrfansifarverforeachgclusgenericsggplot2ggrepelgluegtableisobanditeratorslabelinglatticelifecyclemagrittrMASSMatrixmgcvmunsellnlmepermutepillarpkgconfigpurrrqapR6RColorBrewerRcppregistryrlangscalesseriationstringistringrtibbletidyrtidyselectTSPutf8vctrsveganviridisLitewithr

Consistency tests in depth

Rendered fromconsistency-tests-in-depth.Rmdusingknitr::rmarkdownon Aug 22 2024.

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

Data wrangling

Rendered fromwrangling.Rmdusingknitr::rmarkdownon Aug 22 2024.

Last update: 2024-02-23
Started: 2021-11-18

DEBIT

Rendered fromdebit.Rmdusingknitr::rmarkdownon Aug 22 2024.

Last update: 2024-02-23
Started: 2021-11-18

Developer tools

Rendered fromdevtools.Rmdusingknitr::rmarkdownon Aug 22 2024.

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

Duplication analysis

Rendered fromduplicates.Rmdusingknitr::rmarkdownon Aug 22 2024.

Last update: 2024-02-23
Started: 2023-08-08

GRIM

Rendered fromgrim.Rmdusingknitr::rmarkdownon Aug 22 2024.

Last update: 2024-02-23
Started: 2021-11-18

GRIMMER

Rendered fromgrimmer.Rmdusingknitr::rmarkdownon Aug 22 2024.

Last update: 2024-02-23
Started: 2022-08-14

Implementing your consistency test

Rendered fromconsistency-tests-simple.Rmdusingknitr::rmarkdownon Aug 22 2024.

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

Related software

Rendered fromrelated.Rmdusingknitr::rmarkdownon Aug 22 2024.

Last update: 2023-08-08
Started: 2021-12-01

Rounding in depth

Rendered fromrounding-in-depth.Rmdusingknitr::rmarkdownon Aug 22 2024.

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

Rounding options

Rendered fromrounding-options.Rmdusingknitr::rmarkdownon Aug 22 2024.

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

Readme and manuals

Help Manual

Help pageTopics
Summarize scrutiny objectsaudit
Compute minimal 'audit()' summariesaudit_cols_minimal
Summarize output of sequence mappers and total-n mappersaudit-special audit_seq audit_total_n
Alert user if more specific audit_*() summaries are availablecheck_audit_special
Check that a mapper's input has correct column namescheck_mapper_input_colnames
Is an object a consistency test output tibble?data-frame-predicates is_map_basic_df is_map_df is_map_seq_df is_map_total_n_df
The DEBIT (descriptive binary) testdebit
Apply DEBIT to many casesdebit_map
Using DEBIT with dispersed inputsdebit_map_seq
Use DEBIT with hypothetical group sizesdebit_map_total_n
Visualize DEBIT resultsdebit_plot
Count decimal placesdecimal_places decimal_places_scalar
Count decimal places in a data framedecimal_places_df
Vary hypothetical group sizesdisperse disperse2 disperse_total
Count duplicate valuesduplicate_count
Count duplicate values by columnduplicate_count_colpair
Detect duplicate valuesduplicate_detect
Count duplicates at each observationduplicate_tally
Generalized rounding to the nearest fraction of a specified denominatorfractional-rounding reround_to_fraction reround_to_fraction_level
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
Granularity of non-continuous scalesgrim_granularity grim_items
GRIM-test many cases at oncegrim_map
GRIM-testing with dispersed inputsgrim_map_seq
GRIM-testing with hypothetical group sizesgrim_map_total_n
Visualize GRIM test resultsgrim_plot
Possible GRIM inconsistenciesgrim-stats grim_ratio grim_ratio_upper grim_total
The GRIMMER test (granularity-related inconsistency of means mapped to error repeats)grimmer
GRIMMER-test many cases at oncegrimmer_map
GRIMMER-testing with dispersed inputsgrimmer_map_seq
GRIMMER-testing with hypothetical group sizesgrimmer_map_total_n
Test whether a vector is numeric or coercible to numericis_numeric_like
Helper column operationsmanage_helper_col
Enable name-independent key column identificationmanage_key_colnames
Extract substrings from before and inside parenthesesbefore_parens inside_parens parens-extractors
Means and sample sizes for GRIM-testingpigs1
Percentages and sample sizes for GRIM-testingpigs2
Binary means and standard deviations for using DEBITpigs3
Data with duplicationspigs4
Means, SDs, and sample sizes for GRIMMER-testingpigs5
General interface to reconstructing rounded numbersreround
Restore trailing zerosrestore_zeros restore_zeros_df
Reverse the *_map_seq() processreverse_map_seq
Reverse the *_map_total_n() processreverse_map_total_n
Compute rounding biasrounding_bias
Common rounding proceduresrounding-common round_down round_down_from round_up round_up_from
Uncommon rounding proceduresanti_trunc rounding-uncommon round_anti_trunc round_ceiling round_floor round_trunc
Turn row values into column namesrow_to_colnames
Standard deviation of binary datasd-binary sd_binary_0_n sd_binary_1_n sd_binary_groups sd_binary_mean_n
Sequence generation with dispersion at decimal levelseq_disperse seq_disperse_df
Set sequence lengthseq_length seq_length<-
Rank sequence test resultsseq_test_ranking
Sequence generation at decimal levelseq-decimal seq_distance seq_distance_df seq_endpoint seq_endpoint_df
Is a vector a certain kind of sequence?is_seq_ascending is_seq_descending is_seq_dispersed is_seq_linear seq-predicates
Split columns by parentheses, brackets, braces, or similarsplit_by_parens
Test for subsets, supersets, and equal setsis_equal_set is_equal_set_vals is_equal_set_vecs is_proper_subset_of is_proper_subset_of_vals is_proper_subset_of_vecs is_proper_superset_of is_proper_superset_of_vals is_proper_superset_of_vecs is_subset_of is_subset_of_vals is_subset_of_vecs is_superset_of is_superset_of_vals is_superset_of_vecs subset-superset
Unnest a test result columnunnest_consistency_cols
Reconstruct rounding boundsunround
Documentation template for 'audit()'write_doc_audit
Documentation template for 'audit_seq()'write_doc_audit_seq
Documentation template for 'audit_total_n()'write_doc_audit_total_n
Documentation template for function factory conventionswrite_doc_factory_map_conventions