cmfast: Fast Coordinate-wise Mediation Filter backend

View source: R/cmfast.R

cmfastR Documentation

Fast Coordinate-wise Mediation Filter backend

Description

Fast Coordinate-wise Mediation Filter backend

Usage

cmfast(
  x,
  M,
  y,
  decisionFunction = "prodcoef",
  nStarts,
  nCores,
  cutoff,
  maxIter,
  stableLag,
  p.value,
  pb
)

Examples

# generate some data
dat <- generateMed(a = (1:10)/20, b = (1:10)/20)
cmfilter:::cmfast(dat$x, dat[,-c(1, 12)], dat$y, nStarts = 100, nCores = 2, 
                  cutoff = 0.5, maxIter = 25, stableLag = 5, p.value = 0.1, 
                  pb = FALSE)


vankesteren/cmfilter documentation built on April 6, 2023, 3:40 a.m.