compute_cov_cor | R Documentation |
Compute the robust covariance and correlation matrix of a numeric matrix. The function is used to check whether S_r != S_r_tilda and R_r == R_r_tilda?
compute_cov_cor(x, control)
x |
A numeric matrix or an object that can be coerced to a numeric matrix. |
control |
A control object (S4) for one of the available control classes, e.g. |
A list with the following components:
S_r |
The robust covariance matrix of cov_x. |
S_r_tilda |
The robust covariance matrix of cov_scale_x. |
R_r |
The robust correlation matrix of cov_x. |
R_r_tilda |
The robust correlation matrix of cov_scale_x. |
cov_x = rrcov::CovRobust(x = x, control = control) cov_scale_x = rrcov::CovRobust(x = scale(x), control = control)
Ying-Ying Zhang (Robert) robertzhangyying@qq.com
Zhang, Y. Y. (2013), An Object Oriented Solution for Robust Factor Analysis.
data("hbk")
hbk.x = hbk[,1:3]
compute_cov_cor(x = hbk.x, control = "mcd")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.