Triangulation example: HRT and CVD

Introduction

This vignette demonstrates how to use the interactive_bias_plot() function using HRT and CVD example.

The function launches an interactive app with sliders that control the magnitude and uncertainty of additive and proportional bias. The adjusted effect estimates update automatically as the priors change.

1. Load dataset

example_data <- tibble::tibble(
  result_id = c("Grodstein", "Chilvers", "Manson", "Schierbeck", "Johansson", 
                "Berggreen", "Løkkegaard", "Hulley"),
  study = c("Grodstein", "Chilvers", "Manson", "Schierbeck", "Johansson", 
            "Berggreen", "Løkkegaard", "Hulley"),
  RR = c(0.39,0.74, 1.24, 0.48, 1.52, 1.2, 1, 0.99),
  RR_LC = c(0.19,0.55, 1, 0.26, 1.11, 1.1, 0.6, 0.8),
  RR_UC = c(0.78,0.99,1.54, 0.87, 2.08, 1.3, 1.7, 1.22),
  type = c("Obs","Obs", "RCT", "RCT","Obs", "Obs", "Obs", "RCT")
) %>% mutate(yi=log(RR), vi=((log(RR_UC)-log(RR_LC))/3.92)^2)

2. Launch the inactive bias adjustment sensitivity analysis

interactive_bias_plot(example_data)

📌 Note: This command must be run in an interactive R session (e.g., RStudio). It won’t execute inside a knitted document but will launch a Shiny app when run line-by-line.