Rdocumentation
powered by
Learn R Programming
RUVcorr (version 1.4.2)
makePosSemiDef: Makes square matrices positive semi-definite.
Description
Internal function which returns closest positive semi-definite matrix to input matrix.
Usage
makePosSemiDef(a, offset = 0)
Arguments
a
Square matrix.
offset
Offset.
Value
Positive semi-definite matrix.