s-news
[Top] [All Lists]

Re: Problem in chol : Matrix must be symmetric

To: "Wang, Zhu" <zhuw@mail.smu.edu>, <s-news@lists.biostat.wustl.edu>
Subject: Re: Problem in chol : Matrix must be symmetric
From: "Stahel, Christof" <stahel_2@cob.osu.edu>
Date: Mon, 21 Jun 2004 12:59:05 -0400
Thread-index: AcRXqdlf0eF2Z3FETVaMWSswWS2lfQAASSlw
Thread-topic: [S] Problem in chol : Matrix must be symmetric
There seems to be a problem with the newest Intel processor
architecture. The chol() is based on a Fortran routine that has a lower
tolerance than other Choleski decomposition functions. Simply use those
instead.

Christof


 
-----Original Message-----
From: Wang, Zhu [mailto:zhuw@mail.smu.edu] 
Sent: Monday, June 21, 2004 12:07 PM
To: s-news@lists.biostat.wustl.edu
Subject: [S] Problem in chol : Matrix must be symmetric

Hi Susers!
 
I am trying to use "chol" function of S-plus 6.1 on Windows, with a
matrix as following:
>tmp
tmp
         [,1]     [,2]     [,3] 
[1,] 46799.28 38622.46 15084.87
[2,] 38622.46 49606.19 40787.96
[3,] 15084.87 40787.96 50544.88
> chol(tmp)
chol(tmp)
Problem in chol(tmp): Matrix must be symmetric

This is not the only matrix I have with this error message. However it
does work for some matrix, e.g.,
> chol(matrix(c(2,2,2,2),ncol=2))
chol(matrix(c(2,2,2,2),ncol=2))
         [,1]          [,2] 
[1,] 1.414214 1.414214e+000
[2,] 0.000000 1.883196e-008
attr(, "rank"):
[1] 2

BTW, I have used R without such a problem. I am wondering what happens
here.
 
Thanks,
 
Zhu Wang
 
Statistical Science Department
Southern Methodist University
Dallas, TX
 
 
--------------------------------------------------------------------
This message was distributed by s-news@lists.biostat.wustl.edu.  To
unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
the BODY of the message:  unsubscribe s-news

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