rma_wrapper: Wrapper for fitting fixed/random effects meta-analysis model...

View source: R/helpers_lm_meta.R

rma_wrapperR Documentation

Wrapper for fitting fixed/random effects meta-analysis model using metafor

Description

Wrapper for fitting fixed/random effects meta-analysis model using metafor

Usage

rma_wrapper(maaslin_fits, method = "REML", output = tempdir(),
  forest_plot = NULL, rma_conv = 1e-06, rma_maxit = 1000,
  verbose = TRUE)

Arguments

maaslin_fits

list of Maaslin2 result data frames, outputted from Maaslin2_wrapper.

method

meta-analysis model to run, options provided in metafor::rma.

output

directory for the output forest plots.

forest_plot

logical. should forest plots be generated for the significant associations.

rma_conv

rma threshold control.

rma_maxit

rma maximum iteration control.

verbose

should verbose information be printed.

Value

a data frame recording per-feature meta-analysis association results. (coefficients, p-values, etc.)


biobakery/MMUPHin documentation built on March 30, 2024, 4:50 a.m.