Learn R Programming

robmed (version 0.4.0)

cov_control: Tuning parameters for Huber M-estimation of location and scatter

Description

Obtain a list with tuning paramters for cov_Huber.

Usage

cov_control(prob = 0.95, max_iterations = 200, tol = 1e-07)

Arguments

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

max_iterations

an integer giving the maximum number of iterations in the iteratively reweighted algorithm.

tol

a small positive numeric value to be used to determine convergence of the iteratively reweighted algorithm.

Value

A list with components corresponding to the arguments.

References

Huber, P.J. (1981) Robust statistics. John Wiley & Sons.

See Also

cov_Huber

Examples

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

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

# }

Run the code above in your browser using DataLab