View source: R/validate_prevalence_table.R
validate_prevalence_table | R Documentation |
The validate_prevalence_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_prevalence_table(
.P = NA,
.Q = NA,
.R = NA,
.S = NA,
.nexp = NA,
.nref = NA
)
.P , .Q , .R , .S |
Numeric: prevalence of outcomes. |
.nexp |
Numeric: the total number exposed to the factor. |
.nref |
Numeric: the total number not exposed to the factor. |
A prevalence table is shown here.
Outcome+ | Outcome- | Total | |
Exposed | P% | Q% | M1 |
Referent | R% | S% | M2 |
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.