[R] Can't invert matrix

2010-11-20 Thread Noah Silverman
Hi, I'm trying to use the solve() function in R to invert a matrix. I get the following error, Lapack routine dgesv: system is exactly singular However, My matrix doesn't appear to be singular. [,1] [,2] [,3] [,4] [1,] 0.99252358 0.93715047 0.7540535 0.4579895

Re: [R] Can't invert matrix

2010-11-20 Thread Jorge Ivan Velez
Hi Noah, Could you please show us what you did? I can not reproduce your problem (sessionInfo below): m - matrix(scan(), ncol = 4, byrow = TRUE) 1: 0.99252358 0.93715047 0.7540535 0.4579895 5: 0.01607797 0.09616267 0.2452471 0.3088614 9: 0.09772828 0.58451468 1.4907090 1.8773815 13:

Re: [R] Can't invert matrix

2010-11-20 Thread Spencer Graves
Your matrix has rank 3: A - matrix(c(0.99252358, 0.93715047, 0.7540535, 0.4579895, + 0.01607797, 0.09616267, 0.2452471, 0.3088614, + 0.09772828, 0.58451468, 1.4907090, 1.8773815, + -0.0100, 0., 0.090, 0.170), +

Re: [R] Can't invert matrix

2010-11-20 Thread Bill.Venables
Sent: Sunday, 21 November 2010 2:56 PM To: r-help@r-project.org Subject: [R] Can't invert matrix Hi, I'm trying to use the solve() function in R to invert a matrix. I get the following error, Lapack routine dgesv: system is exactly singular However, My matrix doesn't appear to be singular

Re: [R] Can't invert matrix

2010-11-20 Thread Noah Silverman
:56 PM To: r-help@r-project.org Subject: [R] Can't invert matrix Hi, I'm trying to use the solve() function in R to invert a matrix. I get the following error, Lapack routine dgesv: system is exactly singular However, My matrix doesn't appear to be singular. [,1] [,2