tip_with_binary: Tip a result with a binary confounder.

Description Usage Arguments Details Examples

Description

Choose two of the following three to specify, and the third will be estimated:

Alternatively, specify all three and the function will return the number of unmeasured confounders specified needed to tip the analysis.

Usage

1
2
3
4
tip_with_binary(p1 = NULL, p0 = NULL, gamma = NULL, lb = NULL,
  ub = NULL)

tip_b(p1 = NULL, p0 = NULL, gamma = NULL, lb = NULL, ub = NULL)

Arguments

p1

estimated prevalence of the unmeasured confounder in the exposed population

p0

estimated prevalence of the unmeasured confounder in the unexposed population

gamma

estimated size of an unmeasured confounder

lb

lower bound of your observed effect

ub

upper bound of your observed effect

Details

tip_b() is an alias for tip_with_binary().

Examples

1
2
#to output the size of an unmeasured confounder needed to tip analysis
tip_with_binary(p1 = .5, p0 = 0, lb = 1.2, ub = 1.5)

tipr documentation built on May 2, 2019, 1:46 p.m.