Organises the summary level data for use in the Bayesian MR functions
Source:R/mvmr_format.R
mvmr_format.Rd
Organises the summary level data for use in the Bayesian MR functions
Arguments
- rsid
A vector of genetic variants used for analysis, if unspecified a vector is automatically generated.
- xbeta
A matrix of multiple instrument-phenotypes associations.
- ybeta
A numeric vector of the instrument-outcome associations.
- xse
The matrix for corresponding standard errors of the instrument-phenotypes associations
xbeta
.- yse
The standard errors of the instrument-outcome associations
ybeta
.