Description Usage Arguments Value Examples
Calculate an E-value for a specified set of biases.
1 | calculate_evalue(RRobs, biases, message = TRUE)
|
RRobs |
A number. The value of the risk ratio that was observed but which is suspected to be biased. |
biases |
A list of biases to include in the calculation of the E-value.
May include any or all of |
message |
Logical. Whether or not to print a message with the parameters
the E-value refers to. Defaults to |
Returns a multiple bias E-value describing the value that each of a
number of parameters would have to have for RRobs
to be completely
explained by bias. A message is printed listing the parameters that the
value refers to.
1 2 3 4 5 6 7 8 9 10 11 12 13 | # Calculate an E-value for unmeasured confounding
calculate_evalue(RRobs = 4, biases = confounding())
# Calculate an E-value for selection bias and misclassification
calculate_evalue(RRobs = 2.5,
biases = list(selection("selected"), misclassification("outcome")))
# Calculate an E-value for all three available types of bias
calculate_evalue(RRobs = 1.4234,
biases = list(selection("general", "S = U"),
misclassification("exposure", outcome_rare = TRUE,
exposure_rare = TRUE),
confounding()))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.