matrix
to be positive semi-definiteAdjust network matrix
to be positive semi-definite
# S4 method for matrix
make_psd(x, eps = sqrt(.Machine$double.eps))
A matrix
specifying the network adjacency matrix.
A numeric
value, setting the tolance for smallest
eigenvalue adjustment
The matrix
x
, if it is positive definite and the closest
positive semi-definite matrix
if x
is not positive semi-definite.
For a matrix
N, the closest positive semi-definite matrix
is
calculated as N* = rho*N + (1+rho)*I, where I is the identity matrix
and rho = 1/(1 - lambda) with lambda the smallest eigenvalue of N.
For more details check the references.
Freytag S, Manitz J, Schlather M, Kneib T, Amos CI, Risch A, Chang-Claude J, Heinrich J, Bickeboeller H: A network-based kernel machine test for the identification of risk pathways in genome-wide association studies. Hum Hered. 2013, 76(2):64-75.