Is there a function in R to calculate the generalized determinant of a singular matrix? (similar to the ginv() used to compute the generalized inverse)
Tell me more
×
Cross Validated is a question and answer site for
statisticians, data analysts, data miners and data visualization experts. It's 100% free, no registration required.
|
|
||||
|
|
|
That determinant would be the product of all singular values that you consider to be nonzero, leading to this solution:
Here is an application:
The output is In larger problems, to avoid overflow you might need instead to obtain the logarithm of the determinant:
(This assumes all singular values are non-negative, because when
which returns the logarithm of the magnitude of the determinant along with the sign of the determinant, exactly as in the built-in function |
|||||||||||
|