[R] Matrix Inversion

From: Wang Chengbin <chengbinw_at_gmail.com>
Date: Wed, 12 Dec 2007 18:59:05 +0800

I got the following error:

a = read.csv("mat.csv")
b = as.matrix(a)
tb = t(b)
bb = tb %*% b
ibb = solve(bb)
bb %*% ibb

> ibb = solve(bb)

Error in solve.default(bb) :
  system is computationally singular: reciprocal condition number = 1.77573e-19

Are there any ways to find more information about why it is singular?


R-help_at_r-project.org 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. Received on Wed 12 Dec 2007 - 11:02:49 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 12 Dec 2007 - 12:30:18 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.