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: Table to count how many times an event occurs with another
From
Katia Bobulova <[email protected]>
To
[email protected]
Subject
Re: st: Table to count how many times an event occurs with another
Date
Thu, 4 Aug 2011 15:08:50 +0100
Because it doesn't do what I want and anyway it is not possible to use
tabulate with more than two variables.
Katia
2011/8/4 Nick Cox <[email protected]>:
> Why not -tabulate-?
>
> Nick
>
> On 4 Aug 2011, at 10:52, Katia Bobulova <[email protected]>
> wrote:
>
>> Dear All,
>>
>> I have many events in my dataset and I want to count how many times
>> one event happens with another one.
>>
>> Assuming fro example 4 events and ten observations, I would like to
>> have a table like this:
>>
>> x1 x2 x3 x4
>> x1 10 2 1 3
>> x2 1 10 0 0
>> x3 0 3 10 1
>> x4 2 5 0 10
>>
>> Could you please help me?
>>
> *
> * 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/
>
*
* 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/