matrix_pd | R Documentation |
This function checks whether a matrix is positive definite and regularizes it if not positive definite
matrix_pd(sym_matrix)
sym_matrix |
is a symmetric matrix |
This function checks whether a matrix is positive definite and regularizes it if not positive definite, as done in Hautsch, N., L. Kyj, and R. Oomen (2012)
cxpd a (potentially regularized) positive definite a symmetric n
x n
matrix
Hautsch, N., L. Kyj, and R. Oomen (2012). A blocking and regularization approach to high-dimensional realized covariance estimation. Journal of Applied Econometrics, 27, 625–645
a = rbind(
c(4, 0.5,1),
c(0.5, 3 ,0),
c(1, 0, -2)
)
a
matrix_pd(a)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.