Learn R Programming

robmed (version 0.4.0)

robmed-deprecated: Deprecated functions in package robmed

Description

These functions are provided for compatibility with older versions only, and may be defunct as soon as the next release.

Usage

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(...)

Arguments

x

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.

y

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.

m

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.

covariates

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.

data

an optional data.frame containing the variables.

arguments to be passed down

efficiency

a numeric value giving the desired efficiency (defaults to 0.85 for 85% efficiency).

maxIterations

an integer giving the maximum number of iterations in iterative algorithms.

tol

a small positive numeric value to be used to determine convergence in various parts of the algorithm.

seed

optional initial seed for the random number generator (see .Random.seed).

prob

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).

test

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.

method

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.

robust

a logical indicating whether to perform a robust test. For indirect, the only possible value is FALSE.

median

a logical indicating if the effects should be estimated via median regression. For indirect, the only possible value is FALSE.

See Also

Deprecated

fit_mediation, test_mediation, plot_mediation

reg_control, cov_control

cov_Huber, cov_ML