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]

Re: st: matrix in Stata


From   Friedrich Huebler <fhuebler@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: matrix in Stata
Date   Thu, 21 Feb 2013 18:39:51 -0500

Ana,

What is the rule for the transformation? Why is there a 10 at (db, b)?

Friedrich

On Sat, Feb 16, 2013 at 3:39 PM, Ana Venâncio <avenancio@gmail.com> wrote:
> 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