invcov_mvmr: Generate the list of inverse of covariance matrices used in...

View source: R/mr_mvcML-methods.R

invcov_mvmrR Documentation

Generate the list of inverse of covariance matrices used in MVMR-cML-DP

Description

Generate the list of inverse of covariance matrices used in MVMR-cML-DP

Usage

invcov_mvmr(se_bx, se_by, rho_mat)

Arguments

se_bx

A m*L matrix of standard errors of SNP-exposure association

se_by

A vector of standard errors of SNP-outcome association

rho_mat

The correlation matrix among the L exposures and the outcome

Value

A list of inverse of covariance matrices with respect to each genetic variant, retaining the ordering in se_bx


MendelianRandomization documentation built on May 29, 2024, 11:36 a.m.