Description Usage Arguments Value Author(s) References Examples
View source: R/format_radial.R
Reads in summary data. Checks and organises columns for use in calculating radial IVW and radial MR-Egger estimates. Where variant IDs are not provided, a vector is generated for variant identification.
1 | format_radial(BXG, BYG, seBXG, seBYG, RSID)
|
BXG |
A numeric vector of beta-coefficient values for genetic associations with the first variable (exposure). |
BYG |
A numeric vector of beta-coefficient values for genetic associations with the second variable (outcome). |
seBXG |
The standard errors corresponding to the beta-coefficients |
seBYG |
The 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; Jack Bowden.
Bowden, J., et al., Improving the visualization, interpretation and analysis of two-sample summary data Mendelian randomization via the Radial plot and Radial regression. International Journal of Epidemiology, 2018. 47(4): p. 1264-1278.
1 | format_radial(summarydata[,1],summarydata[,3],summarydata[,2],summarydata[,4])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.