powered by
covcomp returns the variance-covariance matrix of the components P on S, and corcomp returns the correlation matrix.
covcomp
corcomp
corcomp(S, P) covcomp(S, P) cov2cor(V)
a square \(b \times b\) matrix.
correlation/covariance matrix of the \(p\) original variables.
component matrix of dimension \(p \times b\).
symmetric numeric matrix, usually positive definite such as a covariance matrix.
Valentin Rousson rousson@ifspm.unizh.ch and Martin Maechler maechler@stat.math.ethz.ch.
sca, also for references
sca
data(USJudgeRatings) S.jr <- cor(USJudgeRatings) sca.jr <- sca(S.jr, b=4, inter=FALSE) Vr <- covcomp(S.jr, P = sca.jr$simplemat) Vr Cr <- corcomp(S.jr, P = sca.jr$simplemat) Cr
Run the code above in your browser using DataLab