Description Usage Arguments Value Author(s) References Examples
View source: R/format_function.R
Reads in summary data. Checks and organises columns for use in calculating multivariable Mendelian Randomization analyses. Where variant IDs are not provided, a vector is generated for variant identification.
1 | format_mvmr(BXGs, BYG, seBXGs, seBYG, RSID)
|
BXGs |
A matrix containing beta-coefficient values for genetic associations with the each exposure. Columns should indicate exposure number, with rows representing estimates for a given genetic variant. |
BYG |
A numeric vector of beta-coefficient values for genetic associations with the outcome. |
seBXGs |
A matrix containing standard errors corresponding to the matrix of beta-coefficients |
seBYG |
A numeric vector of standard errors corresponding to the beta-coefficients |
RSID |
A vector of names for genetic variants included in the analysis. If variant IDs are not provided ( |
A formatted data frame.
Wes Spiller; Eleanor Sanderson; Jack Bowden.
Sanderson, E., et al., An examination of multivariable Mendelian randomization in the single-sample and two-sample summary data settings. International Journal of Epidemiology, 2018. [Internet]. 2018;dyy262. Available from: https://dx.doi.org/10.1093/ije/dyy262
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.