Extract Correlation Matrix from a pdMat Object

Usage

corMatrix(object)

Arguments

object an object inheriting from class code{pdMat}, representing a positive definite matrix.

Description

The correlation matrix corresponding to the positive-definite matrix represented by object is obtained.

Value

the correlation matrix corresponding to the positive-definite matrix represented by object.

Author(s)

Jose Pinheiro and Douglas Bates

See Also

as.matrix.pdMat, pdMatrix

Examples

library(lme)
pd1 <- pdSymm(diag(1:4))
corMatrix(pd1)


[Package Contents]