Learn R Programming

robmed (version 0.9.0)

reg_control: Tuning parameters for MM-regression

Description

Obtain a list with tuning paramters for lmrob().

Usage

reg_control(efficiency = 0.85, max_iterations = 200, tol = 1e-07, seed = NULL)

Arguments

efficiency

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

max_iterations

an integer giving the maximum number of iterations in various parts of the algorithm.

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

Value

A list of tuning parameters as returned by lmrob.control().

References

Salibian-Barrera, M. and Yohai, V.J. (1987) A fast algorithm for S-regression estimates. Journal of Computational and Graphical Statistics, 15(2), 414--427.

Yohai, V.J. (1987) High breakdown-point and high efficiency estimates for regression. The Annals of Statistics, 15(20), 642--656.

See Also

lmrob(), lmrob.control()

Examples

Run this code
# NOT RUN {
data("BSG2014")

# run fast and robust bootstrap test
ctrl <- reg_control(efficiency = 0.95)
test <- test_mediation(BSG2014,
                       x = "ValueDiversity",
                       y = "TeamCommitment",
                       m = "TaskConflict",
                       control = ctrl)
summary(test)

# }

Run the code above in your browser using DataLab