Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Mata not computing eigenvectors/values


From   Zachary Neal <[email protected]>
To   [email protected]
Subject   st: Mata not computing eigenvectors/values
Date   Sun, 9 Jan 2011 17:45:19 -0500

Running the commands below, mata does not yield any eigenvectors or
eigenvalues.  Computing eigenvectors/values in stata using matrix
symeigen seems to work without a problem.  Any help would be
appreciated.

mata
A = (0,0,0,0,0,1,0,1,0,0,0,0,0 \ ///
     0,0,0,0,0,0,0,1,0,1,0,0,0 \ ///
     0,0,0,1,0,1,1,0,1,0,1,1,1 \ ///
     0,0,1,0,0,0,1,0,0,0,0,0,0 \ ///
     0,0,0,0,0,0,0,1,0,0,0,0,0 \ ///
     1,0,1,0,0,0,0,0,0,0,0,1,0 \ ///
     0,0,1,1,0,0,0,0,0,0,0,0,0 \ ///
     1,1,0,0,1,0,0,0,0,0,0,0,0 \ ///
     0,0,1,0,0,0,0,0,0,0,0,0,0 \ ///
     0,1,0,0,0,0,0,0,0,0,0,0,0 \ ///
     0,0,1,0,0,0,0,0,0,0,0,0,0 \ ///
     0,0,1,0,0,1,0,0,0,0,0,0,0 \ ///
     0,0,1,0,0,0,0,0,0,0,0,0,0)
eigenvector = 0
eigenvalue = 0
symeigensystem(network,eigenvector,eigenvalue)
eigenvector
eigenvalue
end

-- 
Zachary Neal, PhD
Department of Sociology
Michigan State University
[email protected]
http://www.msu.edu/~zpneal
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index