These functions are provided for compatibility with older versions only, and may be defunct as soon as the next release.
fitMediation(x, y, m, covariates = NULL, data, ...)regControl(efficiency = 0.85, maxIterations = 200, tol = 1e-07,
seed = NULL)
covControl(prob = 0.95, maxIterations = 200, tol = 1e-07)
covHuber(...)
covML(...)
testMediation(x, ...)
# S3 method for default
testMediation(x, y, m, covariates = NULL, data, ...)
# S3 method for fit_mediation
testMediation(x, ...)
indirect(..., test = "boot", method = "regression", robust = FALSE,
median = FALSE)
plotMediation(...)
either a numeric vector containing the independent variable, or
(if data
is supplied) a character string, an integer or a logical
vector specifying the corresponding column of data
.
either a numeric vector containing the dependent variable, or
(if data
is supplied) a character string, an integer or a logical
vector specifying the corresponding column of data
.
either a numeric vector or data frame containing the proposed
mediator variables, or (if data
is supplied) a character, integer or
logical vector specifying the corresponding columns of data
.
optional; either a numeric vector or data frame
containing additional covariates to be used as control variables, or (if
data
is supplied) a character, integer or logical vector specifying
the corresponding columns of data
.
an optional data.frame
containing the variables.
arguments to be passed down
a numeric value giving the desired efficiency (defaults to 0.85 for 85% efficiency).
an integer giving the maximum number of iterations in iterative algorithms.
a small positive numeric value to be used to determine convergence in various parts of the algorithm.
optional initial seed for the random number generator (see
.Random.seed
).
numeric; probability for the quantile of the \(\chi^{2}\) distribution to be used as cutoff point in the Huber weight function (defaults to 0.95).
a character string specifying the test to be performed for
the indirect effect. For indirect
, the only possible value is
"boot"
for a bootstrap test.
a character string specifying the method of estimation for
the mediation model. For indirect
, the only possible value is
"regression"
to estimate the effects via regressions.
a logical indicating whether to perform a robust test. For
indirect
, the only possible value is FALSE
.
a logical indicating if the effects should be estimated via
median regression. For indirect
, the only possible value is
FALSE
.