collider_bias.Rd
Run collider bias assessment
collider_bias(
x,
bias_method = "dudbridge",
r2 = 0.001,
p1 = 5e-08,
kb = 250,
plink2 = genepi.utils::which_plink2(),
plink_ref = genepi.utils::which_1000G_reference(build = "GRCh37"),
ip = 0.001,
pi0 = 0.6,
sxy1 = 1e-05,
bootstraps = 100,
weighted = TRUE,
method = "Simex",
B = 1000,
seed = 2023
)
an object of class MR
a character or character vector, one or more of c("dudbridge", "slopehunter", "mr_ivw", "mr_egger", "mr_weighted_median", "mr_weighted_mode")
a numeric 0-1, r2 used for clumping - set all clumping params to NA to turn off
a numeric 0-1, p1 used for clumping - set all clumping params to NA to turn off
an integer, kb used for clumping - set all clumping params to NA to turn off
a path, the plink2 binary
a path, the reference genome pfile
a numeric 0-1, threshold for removing incidence variants; see xp_thresh
SlopeHunter::hunt()
a numeric 0-1, proportion of SNPs in the incidence only cluster; see init_pi
SlopeHunter::hunt()
a numeric, the covariance between incidence and progression Gip SNPs; see init_sigmaIP
SlopeHunter::hunt()
an integer, number of bootstraps to estimate SE; see M
SlopeHunter::hunt()
see weighted
indexevent::indexevent()
see method
indexevent::indexevent()
see B
indexevent::indexevent()
seed, for reproducibility