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 on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Matrix zeros and ones


From   "Tribin Uribe, Ana" <ana_tribin@brown.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: Matrix zeros and ones
Date   Mon, 22 Aug 2011 13:59:58 +0200

Statalisters,

I have  data  about  letters that have been sign by a group of people


Letter   signatures

Letter1 Friend1

Letter2 Friend2 Friend3 Friend4 Friend5

Letter3 Friend4



I want to create with this information  a matrix with zeros and ones,
like this one using information above



Letter Friend1  Friend2  Friend3 Friend4 Friend5

Letter1 1 0 0 0 0

Letter2  0 1 1 1 1

Letter3  0 0 0 1 0



I have been thinking a lot  on how to solve this problem , but I
havent been able to do it, so any guidance would be great.
Thank you very much in advance,

Ana
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index