Learn R Programming

BMhyb (version 1.5.2)

AlterMatrixUsingDE: Transforming current variance covariance matrix to a positive definite matrix

Description

Use differntial evolution method to search for a positive definite matrix.

Usage

AlterMatrixUsingDE(V.modified)

Arguments

V.modified

a matrix

Value

a postive definite matrix.

Details

The function is developed based on the theoretical method in Misha (2007), we apply it to search the positive definite matrix. It first starts search with the element in upper triangular matrix of the variance covariance matrix, then tries to search the positive definite matrix with all nonnegative elements.

References

Mishra, S.K. 2007. The nearest correlation matrix problem: Solution by differential evolution method of global optimization. dx.doi.org/10.2139/ssrn.980403.