Description Usage Arguments Value Examples
One step the cmf function (internal)
1 |
x |
a numeric vector, standardised exogenous variable |
M |
a data frame with column names, potential mediators |
y |
a numeric vector, outcome variable |
decisionFunction |
a function with as inputs x, m, y, parameters, and as output a TRUE (include) or FALSE (exclude) statement |
msel |
binary vector of mediator selections at step i |
medsamp |
which variables to consider |
... |
parameters passed to decisionFunction |
binary vector of mediator selections at step i+1
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.