On Mon, Jul 20, 2009 at 3:08 PM, ekinakoglu<[email protected]> wrote:
> Error in solve.default(cov, ...) : > system is computationally singular: reciprocal condition number = > 1.65972e-18 Try calculating the determinant of the S matrix: > det(S) [1] 2.825397e-06 It's very close to zero, and I guess that the matrix is therefore considered non-invertible by R. Recall that S must be invertible http://en.wikipedia.org/wiki/Mahalanobis_distance to work as a covarinace matrix in the definition of the Mahalanobis distance. -- Michael Knudsen [email protected] http://lifeofknudsen.blogspot.com/ ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

