View source: R/high_low_test.R
high_low_by_digit_place | R Documentation |
high_low_test
Computes the high low digit binomial test by digit place for desired data columns.
Helper function for high_low_test
high_low_by_digit_place(
digitdata,
digits_table,
high,
high_freq_theoretical,
omit_05,
skip_first_digit,
test_type = "binom"
)
digitdata |
A object of class |
digits_table |
A digits table for some data columns, preferably returned by |
high |
An numeric array of digits or a single number that will be classified as high digits. Defaulted to c(6,7,8,9). |
high_freq_theoretical |
A table for theoratical high digit frequency in each digit place. |
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. |
skip_first_digit |
TRUE or FALSE: If TRUE, skip first digit place before analysis. Default to FALSE. |
test_type |
Specifies whether to perform a binomial test on high vs low digit frequency weighted averaged across digit places with "binom", or a chi square test on high vs. low by each digit place with "chisq". Defaulted to "chisq". |
A table of p_values for input digits_table
by digit place
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.