pairwise_analysis: Performs pairwise harmonisation and analyses - helpful when...

View source: R/harmonise.r

pairwise_analysisR Documentation

Performs pairwise harmonisation and analyses – helpful when analysing many exposure-outcome pairs as performing the standard "linear" approach will be very slow.

Description

In this function, an exposure-outcome pair are harmonised, analyses are ran on those data and those results are saved to a file. Analyses ran can be MR or colocalisation, as desired.

Usage

pairwise_analysis(
  exposure,
  outcome,
  res_path,
  ...,
  do_coloc = FALSE,
  cores = 1,
  verbose = TRUE
)

Arguments

exposure

Data.frame of exposure dataset(s)

outcome

Data.frame of outcome dataset(s)

res_path

Path to save result files

...

Other arguments for the following functions: harmonise do_mr do_coloc

do_coloc

True/False run colocalisation analyses

cores

Number of cores for multi-threaded tasks (Optional) NB: Unavailable on Windows machines

verbose

Display verbose information (Optional, boolean)


jwr-git/mrpipeline documentation built on Oct. 2, 2022, 3:41 p.m.