Whether Genetic Evidence Supports A Causal Effect Of X On Y
Use Mendelian randomization when genetic instruments are used to estimate an exposure-outcome effect.
- exposure: instrumented trait
- outcome: target trait
- estimators: IVW, Egger, median where supported
mr <- associate$mr(
data,
exposure = exposure_trait,
outcome = outcome_trait,
instruments = variants
)What comes back
An MR PolyGeniusAssociations object with estimator-level rows plus instrument diagnostics and summaries as artifacts.
Plotting
Estimator forest plots and MR diagnostics. Detailed plotting is under construction.