View source: R/cov_help_funcs.R
is_posdef | R Documentation |
Performs a tolerance check for positive-definiteness of a symmetric matrix.
is_posdef(mat, tol = 1e-08)
mat |
a pxp matrix. |
tol |
a double with tolerance for the eigenvalues. Default value is 1e-8. |
a logical. TRUE, if the matrix mat is positive-definite.
data(rets_m)
ml_sigma <- cov_estim_wrapper2(rets_m, "ML")
is_posdef(ml_sigma)
ml_sigma <- cov_estim_wrapper2(rets_m[1:100, ], "ML")
is_posdef(ml_sigma)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.