
The correlation matrix corresponding to the positive-definite matrix
represented by object
is obtained.
# S3 method for pdMat
corMatrix(object, ...)
the correlation matrix corresponding to the positive-definite matrix
represented by object
.
an object inheriting from class "pdMat"
, representing
a positive definite matrix.
some methods for this generic require additional arguments. None are used in this method.
José Pinheiro and Douglas Bates bates@stat.wisc.edu
as.matrix.pdMat
, pdMatrix
pd1 <- pdSymm(diag(1:4))
corMatrix(pd1)
Run the code above in your browser using DataLab