sector_test | R Documentation |
repeat_test
.Performs sector test to analyze uneven distribution of percent repeats across sectors (supposed to be uniform).
A wrapper function for repeat_test
.
sector_test(
digitdata,
break_out,
category,
category_instance_analyzing,
data_column = NA,
duplicate_matching_cols = "all",
break_out_grouping = NA,
category_grouping = NA,
rounding_patterns_to_omit = NA,
plot = TRUE,
remove_all_category_visualize = FALSE
)
digitdata |
A object of class |
break_out |
|
category |
The column for splitting the data into sectors for separate analysis. The second division (usually variables) shown in plots. |
category_instance_analyzing |
The instance of the category to perform t test on. |
data_column |
The data column to omit rounding numbers upon. Must be a single column. |
duplicate_matching_cols |
An array of names of data columns two rows need to match exactly in order to be defined as a repeat.
Must include |
break_out_grouping |
A list of arrays, or defaulted to NA. Only effective if
|
category_grouping |
A list of arrays, or defaulted to NA. Only effective if
|
rounding_patterns_to_omit |
The patterns to be counted as rounding digits to skip. Defaulted to NA.
|
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. |
remove_all_category_visualize |
TRUE or FALSE: If TRUE, remove visualization of 'All Category' dataset for plots |
A table of p-values for repeat test by sector on each category
Plots for each break out element with variables as categories specified by category_grouping
if plot = TRUE or 'Save'
If NaN is in returned table, it means that there are no occurances of the data of the sector in that category –> 0/0 in percentage
sector_test(digitdata, break_out='column', category='sector', category_instance_analyzing='X')
sector_test(digitdata, break_out='A', category='B', category_instance_analyzing='X', data_column='Y', rounding_patterns_to_omit='00')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.