View source: R/all_digit_test_main_function.R
single_all_digits_test | R Documentation |
all_digits_test
to perform a single all digits test.Helper function for all_digits_test
to perform a single all digits test.
single_all_digits_test(
digitdata,
contingency_table,
data_columns,
digit_places,
skip_first_digit,
omit_05,
category,
category_grouping,
skip_last_digit,
suppress_low_N,
subset_name,
plot,
suppress_second_division_plots,
save3Dfilename,
kwargs
)
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 |
digit_places |
The indexes of left-aligned digit places to analyze. There are three options:
|
skip_first_digit |
TRUE or FALSE: If TRUE, skip first digit place before analysis. Default to FALSE. |
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. |
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
|
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.
|
suppress_low_N |
TRUE or FALSE: If TRUE, suppress columns in expected table if at least one cell in that column has expected value < 5. Default to FALSE. |
subset_name |
The main title to put on plots for current test. |
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. |
suppress_second_division_plots |
TRUE or FALSE: If TRUE, suppress the display of all plots on second division. |
save3Dfilename |
If specified, will save the 3D barplot to apdf named as the input name + break out and category specification. Defaulted to ”. |
kwargs |
extra parameters to pass into 3D plotting; dnt use it now, error prone! Defaulted to NA. Don't try to use it!!!!!!!!! |
p_values for input data possibly break by category
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.