Description Usage Arguments Value
This is a wrapper around the Matrix package's nearPD function. If the diagonal of the original matrix is all 1s, this is detected and assumed to indicate the input is a correlation matrix, so the resulting output is converted to a correlation matrix via cov2cor. If the diagonal is not all 1s, this is not applied.
1 | mpd(m, tol = 1e-06)
|
m |
a symmetric matrix |
tol |
the tolerance value determines what eigenvalues are considered essentially zero. the default is 1e-6. |
a matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.