Organises the summary level data for use in the Bayesian MR functions
Source:R/mr_format.R
mr_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 numeric vector of the instrument-phenotype associations.
- ybeta
A numeric vector of the instrument-outcome associations.
- xse
The standard errors of the instrument-phenotype associations
xbeta
.- yse
The standard errors of the instrument-outcome associations
ybeta
.