Skip to contents

Produces a tidy data.frame with the estimate, CI, p-value, applicable E-values (RR / OR / HR), and a tipping-point delta.

Usage

sensitivity_summary(
  estimate,
  se,
  rr = NULL,
  odds_ratio = NULL,
  hazard_ratio = NULL,
  prevalence = NULL
)

Arguments

estimate

Treatment-effect estimate.

se

Standard error.

rr, odds_ratio, hazard_ratio

Optional effect on each scale.

prevalence

Outcome prevalence (for OR-to-RR).

Value

A data.frame with metric, value.

Examples

str(sensitivity_summary(0.5, 0.15, rr = 1.8, prevalence = 0.2),
    max.level = 1)
#> 'data.frame':	8 obs. of  2 variables:
#>  $ metric: chr  "estimate" "se" "ci_lower" "ci_upper" ...
#>  $ value : num  0.5 0.15 0.206 0.794 0.000858 ...