powered by
Compute the maximum likelihood estimator of the mean vector and the covariance matrix.
cov_ML(x, ...)
a numeric matrix or data frame.
additional arguments are currently ignored.
An object of class "cov_ML" with the following components:
"cov_ML"
a numeric vector containing the mean vector estimate.
a numeric matrix containing the covariance matrix estimate.
an integer giving the number of observations.
Zu, J. and Yuan, K.-H. (2010) Local influence and robust procedures for mediation analysis. Multivariate Behavioral Research, 45(1), 1--44.
test_mediation, fit_mediation
test_mediation
fit_mediation
# NOT RUN { data("BSG2014") # define variables x <- "ValueDiversity" y <- "TeamCommitment" m <- "TaskConflict" # compute Huber M-estimator cov_ML(BSG2014[, c(x, y, m)]) # }
Run the code above in your browser using DataLab