Re: [R] matrix inverstion

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

Daniel Nordlund <djnordlund <at> frontier.com> 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?

 [snip]
>
> 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).



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 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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive