| build_table | R Documentation |
build_table() completes partially-specified contingency tables using simple arithmetic.
build_table(timber, low_cell_correction = 0.5, low_cell_threshold = 0)
timber |
a tibble of timber. |
low_cell_correction |
numeric: the value added to all cells when one or more is at or below the |
low_cell_threshold |
numeric: the threshold at or below which the |
A complete contingency table (counts in cells A, B, C, and D) is required to calculate
measures of association for count or prevalence-based data. Depending on the factor's grain,
the set of fields used to complete the table differs. Simple arithmetic is used to complete the
table. The fields included in each grain are described in check_grain.
When any cells in the table are less than or equal to the low_cell_threshold, a low_cell_correction
is added to each cell, and the correction is noted in the low_cell_count column.
Where both positive cells (A and C) are zero, the factor represents a null comparison, and the null comparison is noted in the null_comparison column.
A tibble of timber, with complete A, B, C, and D columns for count and prevalence-based factors, and additional columns: low_cell_count, and null_comparison.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.