gformula_med_ci: Calculate mediation analysis confidence interval

Description Usage Arguments

View source: R/medlong.R

Description

Used to calculate confidence interval using non-parametric bootstrap methods.

Usage

1
gformula_med_ci(object, R = 500, parallel = FALSE, ncpus = 1L)

Arguments

object

Object returned from Gformula function (see Gformula).

R

The number of bootstrap replicates, default is 500. Same with boot, see boot for detail.

parallel

If parallel operation to be used, the default is FALSE.

ncores

integer: number of processes to be used in parallel operation: typically one would chose this to the number of available CPUs.


adayim/causalMed documentation built on June 2, 2020, 4:11 p.m.