View source: R/digit_pair_test.R
digit_pairs_test | R Documentation |
Performs terminal digit pair binomial test vs uniform distribution (Benford’s Law)
digit_pairs_test(
digitdata,
data_columns = "all",
omit_05 = NA,
min_length = 3,
break_out = NA,
test_alternative = "less",
break_out_grouping = NA,
plot = TRUE
)
digitdata |
A object of class |
data_columns |
The names of numeric columns of data to be analyzed. Default can be 'all', where using all data columns in |
omit_05 |
Whether to omit 0 or both 0 and 5. If omit both 0 and 5, pass in c(0,5) or c(5,0); if omit only 0 pass in 0 or c(0); if omit neither, pass in NA. Default to NA. |
min_length |
The minimum length of the numbers to be analyzed in digit pair test. Must be an integer >= 2. Default to 3. |
break_out |
|
test_alternative |
The test alternative for binomial test performed.
|
break_out_grouping |
A list of arrays, or defaulted to NA. Only effective if
|
plot |
TRUE or FALSE or 'Save': If TRUE, display the plots and return them. If 'Save', return the plots but suppress display. If FALSE, no plot is produced. Default to TRUE. |
A table of p-values for terminal digit pair test on each category
A table of sample sizes for terminal digit pair test on each category
Plots for each category if plot = TRUE or 'Save'
digit_pairs_test(digitdata, data_columns='all')
digit_pairs_test(digitdata, data_columns=c('col_name1', 'col_name2'))
digit_pairs_test(digitdata, data_columns='all', omit_05=NA, min_length=5)
digit_pairs_test(digitdata, data_columns='all', omit_05=0, break_out='col_name')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.