View source: R/high_low_test.R
single_high_low_test | R Documentation |
high_low_test
.Perform a single high low test. Helper function for high_low_test
.
single_high_low_test(
digitdata,
contingency_table,
data_columns,
high,
omit_05,
skip_first_digit,
skip_last_digit,
category,
category_grouping,
test_type
)
digitdata |
A object of class |
contingency_table |
The user-input probability table of arbitrary distribution. Overwrites
|
data_columns |
The names of numeric columns of data to be analyzed. Default can be 'all', where using all data columns in |
high |
An numeric array of digits or a single number that will be classified as high digits. Defaulted to c(6,7,8,9). |
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. |
skip_last_digit |
TRUE or FALSE: If TRUE, skip last digit place before analysis, since we don't want tests to overlap. Default to FALSE.
|
category |
The column for splitting the data into sectors for separate analysis. The second division (usually variables) shown in plots. |
category_grouping |
A list of arrays, or defaulted to NA. Only effective if
|
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". |
p_values table of high low test for input data from digitdata
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.