posdef | R Documentation |
If the output matrix from getrhomatrix
is not positive
definite, this will find an approximate matrix that is using Matrix::nearPD()
with corr=TRUE
.
posdef(mat)
mat |
A symmetrical square matrix with 1's on diagonal. |
An approximate version of mat
that is positive definite. Row and column names are retained.
getrhomatrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.