mr_allmethods | R Documentation |
The function mr_allmethods
implements Mendelian randomization analyses using summarized data to calculate estimates (as well as standard
errors and confidence interval limits) for all the methods included in the package (or alternatively for the group of methods chosen).
mr_allmethods(object, method = "all", ...)
## S4 method for signature 'MRInput'
mr_allmethods(object, method = "all", ...)
object |
An |
method |
Which estimation method should be included in the calculation. By default, all estimates are computed ( |
... |
Additional arguments to be passed to other methods. |
See mr_median
, mr_egger
, and mr_ivw
for details of how each of the methods is implemented.
An object of type MRAll
with the following slots :
Data |
The MRInput object used to calculate the various values. |
Values |
A data.frame containing the various estimates. |
Method |
The choice of methods estimated (default is |
See mr_median
, mr_egger
, and mr_ivw
.
mr_allmethods(mr_input(bx = ldlc, bxse = ldlcse,
by = chdlodds, byse = chdloddsse), method="main", iterations = 100)
# iterations is set to 100 to reduce runtime for the mr_median method,
# at least 10000 iterations are recommended in practice
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.