
Robust Invalid Variance Weighted Estimator
RIVW.RdPerforms the robust invalid variance weighted estimator for Mendelian randomization.
Usage
RIVW(
gamma.exp_sel,
gamma.out_sel,
se.exp_sel,
se.out_sel,
etamean = 0.5,
sel.pthr = 5e-05,
overlap.mat = NULL
)Arguments
- gamma.exp_sel
Vector of genetic associations with the exposure
- gamma.out_sel
Vector of genetic associations with the outcome
- se.exp_sel
Vector of standard errors for the exposure associations
- se.out_sel
Vector of standard errors for the outcome associations
- etamean
Mean of the random variable for re-randomization
- sel.pthr
P-value threshold for selecting significant SNPs
- overlap.mat
Overlap matrix for correlated samples (NULL for independent samples)