s-news
[Top] [All Lists]

solve

To: <s-news@lists.biostat.wustl.edu>
Subject: solve
From: "Abderrahim Oulhaj" <abderrahim.oulhaj@pharmacology.oxford.ac.uk>
Date: Tue, 14 Dec 2004 18:33:51 -0000
Dear all,
 
I  had something bizarre when I tried to get the inverse of the same matrix with S-plus6.2 and R.
 
> A <- matrix(c(613537.28025, -49.536866569,-49.53687, 0.004000337),nrow = 2, byrow=TRUE)
 
With S-plus:
 
> solve(A)

Problem in solve.qr(a): apparently singular matrix
Use traceback() to see the call stack
With R:
 
> solve(a)

             [,1]         [,2]
[1,]   0.00880039     108.9767
[2,] 108.97675704 1349728.0536
Explanation?
 
Abderrahim
 
 
 
 
 
 

 
<Prev in Thread] Current Thread [Next in Thread>