View source: R/multivariable_mr.R
mv_harmonise_data | R Documentation |
Harmonise exposure and outcome for multivariable MR
mv_harmonise_data(exposure_dat, outcome_dat, harmonise_strictness = 2)
exposure_dat |
Output from |
outcome_dat |
Output from |
harmonise_strictness |
See the |
List of vectors and matrices required for mv analysis.
a matrix of beta coefficients, in which rows correspond to SNPs and columns correspond to exposures.
is the same as exposure_beta
, but for standard errors.
the same as exposure_beta
, but for p-values.
A data frame with two variables, id.exposure
and exposure
which are character strings.
an array of effects for the outcome, corresponding to the SNPs in exposure_beta
.
an array of standard errors for the outcome.
an array of p-values for the outcome.
A data frame with two variables, id.outcome
and outcome
which are character strings.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.