View source: R/mrinput_mrformat.R
mrinput_mr_format | R Documentation |
Creates a data.frame with class mr_format
from an object of class MRInput
generated by MendelianRandomization::mr_input
.
mrinput_mr_format(dat)
dat |
Object from |
Object of class mr_format
, the mrbayes format
if (requireNamespace("MendelianRandomization", quietly = TRUE)) {
dat <- MendelianRandomization::mr_input(
bx = bmi_insulin$beta.exposure,
bxse = bmi_insulin$se.exposure,
by = bmi_insulin$beta.outcome,
byse = bmi_insulin$se.outcome,
snps = bmi_insulin$rsid
)
dat <- mrinput_mr_format(dat)
head(dat)
class(dat)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.