Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: How define an asymmetric matrix on .dta file as an asymmetric matrix in Stata?


From   Erik Aadland <erikaadland@hotmail.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: How define an asymmetric matrix on .dta file as an asymmetric matrix in Stata?
Date   Wed, 27 Jul 2011 08:50:33 +0000

Dear statalist.
 
I have fairly large asymmetric matrices (e.g. 200 by 200) from which I want to compute eigenvalues using the command:
 
matrix eigenvalues r c = A
 
Each of my asymmetric matrices are stored as separate .dta files and have the following general structure:
 
   A  B  C   D
A  0  0  1   0
B  2  0  0   1
C  3  1  0   2
D  1  0  2   0
 
How do I define each of these .dta files as the asymmetric matrix A so that Stata understands that the matrix in the .dta file is in fact an asymmetric matrix? As far as I can see, I need to do this in order to execute the command: matrix eigenvalues r c = A
 
 
Is there a simple command/way to accomplish this?
 
Thank you and kind regards,
 
Erik. 		 	   		  
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index