mr.raps | R Documentation |
mr.raps
procedureRecommended mr.raps
procedure
mr.raps(
data,
diagnostics = TRUE,
over.dispersion = TRUE,
loss.function = "huber",
...
)
data |
A data frame (see Details) |
diagnostics |
Logical indicator for showing diagnostic plots. |
over.dispersion |
Should the model consider overdispersion (systematic pleiotropy)? Default is FALSE. |
loss.function |
Either the squared error loss ( |
... |
Additional parameters to be passed to |
This function calls mr.raps.shrinkage
with overdispersion = TRUE
, loss.function = "huber"
. The input data frame should contain the following variables:
beta.exposure
beta.outcome
se.exposure
se.outcome
mr.raps.shrinkage
# Example 1
mr.raps(bmi.sbp)
# Example 2
data(lipid.cad)
data <- subset(lipid.cad, lipid == "hdl" & restrict &
gwas.selection == "teslovich_2010" &
gwas.outcome == "cardiogramplusc4d_1000genome")
mr.raps(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.