Harmonise exposure and outcome for multivariable MR
Source:R/multivariable_mr.R
mv_harmonise_data.RdHarmonise exposure and outcome for multivariable MR
Arguments
- exposure_dat
Output from
mv_extract_exposures().- outcome_dat
Output from
extract_outcome_data(exposure_dat$SNP, id_output).- harmonise_strictness
See the
actionoption ofharmonise_data(). The default is2.
Value
List of vectors and matrices required for mv analysis.
- exposure_beta
a matrix of beta coefficients, in which rows correspond to SNPs and columns correspond to exposures.
- exposure_se
is the same as
exposure_beta, but for standard errors.- exposure_pval
the same as
exposure_beta, but for p-values.- expname
A data frame with two variables,
id.exposureandexposurewhich are character strings.- outcome_beta
an array of effects for the outcome, corresponding to the SNPs in
exposure_beta.- outcome_se
an array of standard errors for the outcome.
- outcome_pval
an array of p-values for the outcome.
- outname
A data frame with two variables,
id.outcomeandoutcomewhich are character strings.