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
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:
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),
+
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
: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
5 matches
Mail list logo