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: Converting table into matrix


From   R Zhang <[email protected]>
To   [email protected]
Subject   st: Converting table into matrix
Date   Fri, 21 Mar 2014 22:08:45 -0400

Dear All,

I need to convert a 470*470 table into matrix. Below I supplied a 3 *3
table and desired matrix output. I never used matrix in stata. if you
could suggest a sample program that will be great .

thank you in advance !!

++++++++++ what I have +++++++++++

C_industry S_industry input
Forestrysupport Forestrysupport 0
Forestrysupport Forestrynursery 0
Forestrysupport logging 0
Forestrynursery Forestrysupport 64
Forestrynursery Forestrynursery 1
Forestrynursery logging 1
logging Forestrysupport 7
logging Forestrynursery 29
logging logging 41



++++++++++ what I like to have +++++++++++
Forestrysupport Forestrynursery logging
Forestrysupport 0 0 0
Forestrynursery 64 1 1
logging 7 29 41



Thank you !

rongrong
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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