% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/copied_functions.R
\name{mr_grip}
\alias{mr_grip}
\title{MR-GRIP: a modified MR-Egger model with the Genotype Recoding Invariance Property}
\usage{
mr_grip(b_exp, b_out, se_exp, se_out, parameters)
}
\arguments{
\item{b_exp}{Vector of genetic effects on exposure.}

\item{b_out}{Vector of genetic effects on outcome.}

\item{se_exp}{Standard errors of genetic effects on exposure.}

\item{se_out}{Standard errors of genetic effects on outcome.}

\item{parameters}{Unused; accepted for API compatibility only.}
}
\value{
List with elements: \code{b}, \code{se}, \code{pval} (causal
  estimate, SE, p-value); \code{b_i}, \code{se_i}, \code{pval_i}
  (intercept and its SE and p-value); \code{b.adj}, \code{se.adj},
  \code{pval.adj} (weak-instrument-adjusted estimate); \code{nsnp},
  \code{mod}, \code{smod}, \code{dat}.
}
\description{
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 \code{parameters} argument
is accepted for API compatibility but is not used; all weights and
computations follow the original GRIP specification exactly.
}
