invcov_mvmr function

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

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

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

Returns

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

  • Maintainer: Stephen Burgess
  • License: GPL-2 | GPL-3
  • Last published: 2024-04-12

Useful links