Re: [R] matrix inverstion

From: Ben Bolker <>
Date: Mon, 28 Mar 2011 20:50:06 +0000

Daniel Nordlund <djnordlund <at>> writes:

> > On Behalf Of Rosario Garcia Gil

> > I have this matrix which I am trying to invert. I get a message about
> > reciprocal condition number, what that does mean?

> Well, it means exactly what the message says. Within the precision of your
computer, the matrix is singular
> and has no inverse. If you try the following code you will see that column 1
is perfectly correlated with the
> remaining columns.
> summary(lm(XT_X [,1] ~ XT_X[,-1]))

  Depending on what you're trying to do, you might try the generalized inverse in the MASS package (MASS::ginv). mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Mon 28 Mar 2011 - 20:58:34 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 Mon 28 Mar 2011 - 21:10:26 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive