compute_OR | R Documentation |
compute_OR()
calculates odds ratios from data of two vectors representing the
frequencies of: numerator; denominator. The correction may be used if there is any frequency equals
zero to avoid getting meaningless outputs.
compute_OR(numerator, denominator, correction = TRUE)
numerator |
the column whose data are the frequencies of the numerator |
denominator |
the column whose data are the frequencies of the denominator |
correction |
logical, if TRUE (the default) the odds ratio will be calculated by adding 0.5 to avoid meaningless results |
A vector of odds ratios
compute_OR(rbinom(10, 1000, 0.8), rbinom(10, 1000, 0.1), FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.