phenocov_mvmr: phenocov_mvmr

View source: R/phenocov_mvmr.R

phenocov_mvmrR Documentation

phenocov_mvmr

Description

Uses an external phenotypic covariance matrix and summary data to estimate covariance matrices for estimated effects of individual genetic variants on each exposure. The phenotypic covariance matrix should be constructed using standardised phenotype measures. The function returns a number of covariance matrices equal to the number of SNPs, where SNP and row numbers reference ordered exposures.

Usage

phenocov_mvmr(Pcov, seBXGs)

Arguments

Pcov

A phenotypic matrix using exposures, constructed using individual level exposure data. Columns should be ordered by exposure so as to match format_mvmr.

seBXGs

A matrix containing standard errors corresponding in relation to the gene-exposure association for each SNP.

Value

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

Author(s)

Wes Spiller; Eleanor Sanderson; Jack Bowden.

References

Sanderson, E., et al., An examination of multivariable Mendelian randomization in the single-sample and two-sample summary data settings. International Journal of Epidemiology, 2019, 48, 3, 713-727. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1093/ije/dyy262")}

Examples

## Not run: 
phenocov_mvmr(Pcov, summarydata[,c(3,4)])

## End(Not run)

WSpiller/MVMR documentation built on May 17, 2023, 5:48 p.m.