I have a estimate of covariance matrix
I want to take the inverse of this matrix, R gives me the following error
A=[ 3529861.470 8785861.47 6920.344 17120.34;
8785861.470 26209861.47 17120.344 51920.34;
6920.344 17120.34 14.000 34.00;
17120.344 51920.34 34.000 104.00]
"Error in solve.default(l) : system is computationally singular: reciprocal condition number = 2.14511e-22".
however Matlab does the inverse calculation without giving any error message. Does anyone know the reason why R is giving me error? Is the any other way to calculate inverse
cond(A)) of 9.5e12, so the matrix is actually close to singular. Perhaps R just has a stricter threshold than Matlab to declare a matrix as close to singular - Luis Mendosolve()has no trouble inverting this matrix. - Richard Borderrcondreturns7.5E-14. Are you sure that MATLAB and R have the same matrix? - TroyHaskinsolveinverts this matrix with no errors or warnings for me in R as well. - joran