Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: creating matrix


From   "[email protected]" <[email protected]>
To   <[email protected]>
Subject   st: creating matrix
Date   Mon, 8 May 2006 14:33:30 -0400

I am trying to create a variable to represent a matrix.
I have the following text files:


 1               2             3             4             5
1 0.00000  0.12704  0.06991  0.00000  0.09954
2 0.21727  0.00000  0.18285  0.00000  0.29448
3 0.26031  0.26513  0.00000  0.00000  0.29448
4 0.00000  0.00000  0.00000  0.00000  0.00000
5 0.27872  0.30490  0.25021  0.00000  0.00000

I would like the following:

1a x
1b 0.21727
1c 0.26031
1d 0.0
1e  0.27872
2a 0.12704
2b x
2c 0.26513
2d 0.0
2e 0.30490
etc..

Any suggestions as to the general direction I should pursue would be greatly
appreciated.

*
*   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