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


From   Ana Venâncio <avenancio@gmail.com>
To   statalist@hsphsun2.harvard.edu
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index