This method function extracts the positive-definite matrix represented by x.

# S3 method for class 'pdMat'
as.matrix(x, ...)

Arguments

x

an object inheriting from class "pdMat", representing a positive-definite matrix.

...

further arguments passed from other methods.

Value

a matrix corresponding to the positive-definite matrix represented by x.

References

Pinheiro, J. C. and Bates, D. M. (2000), Mixed-Effects Models in S and S-PLUS, Springer, New York.

Author

José Pinheiro and Douglas Bates bates@stat.wisc.edu

See also

Examples

as.matrix(pdSymm(diag(4)))
#>      [,1] [,2] [,3] [,4]
#> [1,]    1    0    0    0
#> [2,]    0    1    0    0
#> [3,]    0    0    1    0
#> [4,]    0    0    0    1