[R] solve() versus ginv()

From: Werner Bier <aliscla_at_yahoo.com>
Date: Sun 16 Oct 2005 - 08:02:26 EST


Dear All,  

While inverting a matrix the following error appears on my console:  

Error in solve.default(my_matrix) : Lapack routine dgesv: system is exactly singular  

With this respect, I have been replacing the solve() function with ginv(): the Moore-Penrose generalized inverse of a matrix.  

These are the questions I would like to ask you:  

  1. Would you also replace solve() with ginv() in these scenarios and using R?
  2. Or is there something I should take care by using ginv() you would suggest me please?

Many thanks in advance.  

Best regards,
Werner                 


        [[alternative HTML version deleted]]



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sun Oct 16 08:20:03 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:40:45 EST