Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: bug in matrix svd


From   "U.A.QU.AP" <[email protected]>
To   [email protected]
Subject   st: bug in matrix svd
Date   Wed, 21 Dec 2005 12:47:51 +0100 (CET)

Hello,
when I perform a singular value decomposition of a matrix G
(say) I expect that stata create 3 matrix U W V such that 
U W V =G where W contains the singular value og G in
DECREASING order (this is important to perform later a test of
rank of such marix), but Stata put the smallest singular value
in the top diagonal of W while the rest of singular value are
ordred as expected.
How to fix such problem.
below the code:
mat svd U W V=G
mat list W
W[1,9]
           y1         y1         y1         y1         y1    
    y1
r1  3.538e-18  .61151468  .61151468  .31692701  .31692701 
.16776301

           y1         y1         y1
r1  .16776301  .02892478  .02892478

many thanks 
AbdelRahmen


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index