calculate_bound: Calculate a bound for the bias

Description Usage Arguments Value Examples

View source: R/bound.R

Description

Function used to calculate the maximum factor by which a risk ratio is biased, given possible values for each of the parameters that describe the bias factors for each type of bias.

Usage

1

Arguments

...

Named parameter values with which to calculate a bound. Names must correspond to the parameters defining the biases provided by biases. Help with names can be found by running get_param_info(biases) for the biases of interest. Unnecessary parameters are ignored with a warning.

biases

A list of biases to include in the calculation of the bound. May include any or all of confounding(), selection(), and misclassification(), and any of the options described in the documentation for those functions.

Value

Returns the value of the bound formed as a function of the provided parameters.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
calculate_bound(RRAU = 2.2, RRUY = 1.7,
               biases = list(confounding()))

calculate_bound(RRUY = 3, RRAU = 2, RRUYA0 = 2.3,
                        RRUYA1 = 5.2, RRYAa = 8.3,
               biases = list(
                        confounding(), selection("S = U"),
                        misclassification("exposure",
                        outcome_rare = TRUE, exposure_rare = FALSE)
                        ))

louisahsmith/simpleSens documentation built on March 19, 2020, 12:07 a.m.