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: matrix in Stata


From   Ana Venâncio <[email protected]>
To   [email protected]
Subject   st: matrix in Stata
Date   Sat, 16 Feb 2013 20:39:02 +0000

Dear Statalisters,


I would like to ask for your help on the following.

Currently I have the following data on Stata:

d  da db  dc dd
a  .  10  20  .
b  .  .   1   5
c  .  .   .   .
d  30 .   10  .


and I would like to turn data into:


d  da db  dc dd
a  0  10  20 30
b  10 10   1  5
c  20  1   0 10
d  30  5  10  0


Thank you in advance. Best regards,

Ana Venâncio

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