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]

Re: st: matrix in Stata


From   Friedrich Huebler <[email protected]>
To   [email protected]
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 <[email protected]> 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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index