nlme (version 3.1-86)

corMatrix.pdMat: Extract Correlation Matrix from a pdMat Object

Description

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

Usage

## S3 method for class 'pdMat':
corMatrix(object, \dots)

Arguments

Value

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

See Also

as.matrix.pdMat, pdMatrix

Examples

Run this code
pd1 <- pdSymm(diag(1:4))
corMatrix(pd1)

Run the code above in your browser using DataCamp Workspace