View source: R/validate_contingency_table.R
validate_contingency_table | R Documentation |
The validate_contingency_table()
function determines if the set of
provided parameters match a set of parameters (a 'grain') that is
sufficient to calculate an odds ratio and its confidence intervals.
Additionally, it checks if those parameters are valid.
validate_contingency_table(
.A = NA,
.B = NA,
.C = NA,
.D = NA,
.nexp = NA,
.nref = NA
)
.A , .B , .C , .D |
Integer: counts of outcomes. |
.nexp |
Integer: the total number exposed to the factor. |
.nref |
Integer: the total number not exposed to the factor (referent). |
A contingency table is shown here.
Outcome+ | Outcome- | Total | |
Exposed | A | B | nexp |
Referent | C | D | nref |
See check_grain
for more details.
A list of three values: is_valid (logical), status (string), and table_type (string).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.