View source: R/format_mr_results2.R
combine_all_mrresults | R Documentation |
This function combines results of mr()
, mr_heterogeneity()
, mr_pleiotropy_test()
and mr_singlesnp()
into a single data frame.
It also merges the results with outcome study level characteristics in available_outcomes()
.
If desired it also exponentiates results (e.g. if the user wants log odds ratio converted into odds ratios with 95 percent confidence intervals).
The exposure and outcome columns from the output from mr()
contain both the trait names and trait ids.
The combine_all_mrresults()
function splits these into separate columns by default.
combine_all_mrresults(
res,
het,
plt,
sin,
ao_slc = TRUE,
Exp = FALSE,
split.exposure = FALSE,
split.outcome = FALSE
)
res |
Results from |
het |
Results from |
plt |
Results from |
sin |
Results from |
ao_slc |
Logical; if set to |
Exp |
Logical; if set to |
split.exposure |
Logical; if set to |
split.outcome |
Logical; if set to |
data frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.