mr_loo | R Documentation |
The mr_loo
function draws a forest plot of causal estimates from the mr_ivw
function using default settings (assuming variants are uncorrelated, random-effects for 4+ variants) omitting each variant in turn. So the estimate labelled snp_1
includes all variants except the labelled variant, and so on. The mr_ivw
estimate including all variants ("IVW estimate") is also provided for reference.
mr_loo(object, alpha = 0.05)
## S4 method for signature 'MRInput'
mr_loo(object, alpha = 0.05)
object |
An |
alpha |
The significance level used to calculate the confidence intervals. The default value is 0.05, corresponding to 95% confidence intervals. |
As the function produces a ggplot
object, graphical parameters can be changed by adding commands from the ggplot2
package.
mr_loo(mr_input(bx = ldlc, bxse = ldlcse, by = chdlodds, byse = chdloddsse),
alpha = 0.01)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.