Skip to contents

Plots sensitivity analysis for coloc results

Usage

coloc_sensitivity(
  obj,
  rule = "H4 > 0.8",
  trait1_title = "trait 1",
  trait2_title = "trait 2",
  dataset1 = NULL,
  dataset2 = NULL,
  npoints = 100,
  suppress_messages = FALSE,
  row = 1,
  data_check_trait1 = NULL,
  data_check_trait2 = NULL
)

Arguments

obj

Output from coloc.detail or coloc.process.

rule

Decision rule for acceptable posterior probabilities.

trait1_title

Title for the first trait (default: "trait 1").

trait2_title

Title for the second trait (default: "trait 2").

dataset1

Optional dataset for the first trait.

dataset2

Optional dataset for the second trait.

npoints

Number of points for evaluating prior values. Default is 100.

suppress_messages

Logical, whether to suppress messages (default is FALSE).

row

Row number for coloc summary if multiple rows are present. Default is 1.

data_check_trait1

Data for trait 1 to be checked.

data_check_trait2

Data for trait 2 to be checked.

Value

List of prior matrix, posterior matrix, and a pass/fail indicator (returned invisibly).