[Rd] least squares with solve: leading minor is not positive definite

From: Tamas K Papp <tpapp_at_Princeton.EDU>
Date: Wed 29 Nov 2006 - 16:29:29 GMT


I am following the "Comparing Least Squares Calculations" vignette of the Matrix package to get a least squares solution x for

MM %*% x == mu$utility

I get the following error message:

Error in solve(crossprod(MM), crossprod(MM, mu$utility)) :

        the leading minor of order 1079 is not positive definite

I thought that the least squares was always defined... What can I do about this?


R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu Nov 30 07:30:17 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 29 Nov 2006 - 21:30:52 GMT.

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