View source: R/copied_functions.R
| mr_grip | R Documentation |
Implements the modified MR-Egger model with the Genotype Recoding Invariance
Property (MR-GRIP) due to Dudbridge and Bowden et al. (2025). The model
multiplies each term of MR-Egger by the genotype-phenotype association,
making results invariant to allele coding. The parameters argument
is accepted for API compatibility but is not used; all weights and
computations follow the original GRIP specification exactly.
mr_grip(b_exp, b_out, se_exp, se_out, parameters)
b_exp |
Vector of genetic effects on exposure. |
b_out |
Vector of genetic effects on outcome. |
se_exp |
Standard errors of genetic effects on exposure. |
se_out |
Standard errors of genetic effects on outcome. |
parameters |
Unused; accepted for API compatibility only. |
List with elements: b, se, pval (causal
estimate, SE, p-value); b_i, se_i, pval_i
(intercept and its SE and p-value); b.adj, se.adj,
pval.adj (weak-instrument-adjusted estimate); nsnp,
mod, smod, dat.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.