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]

From |
Nick Cox <njcoxstata@gmail.com> |

To |
"statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |

Subject |
Re: st: Table to count how many times an event occurs with another |

Date |
Thu, 4 Aug 2011 17:37:01 +0100 |

See also -groups- from SSC.

No unfortunately it is not what I want. I am just trying to have a table showing how many times a dummy is released contemporaneously to each other dummy for each interval time through my sample. Thank you very much anyway. Katia 2011/8/4 MacLennan, Graeme <g.maclennan@abdn.ac.uk>:If you have only four dummies then: *** example begin*** gen d1d2d3d4 = D1*1000 + D2*100 + D3*10 + D4 tab d1d2d3d4 *** example end*** Might do what you want? Graeme ******** This is an example of my databse: Date Time D1 D2 D3 D4 01/01/2008 8:00 1 0 0 1 01/01/2008 9:00 0 0 0 0 01/01/2008 10:00 0 1 1 0 ..... ....... . . . .For every day I have something similar to the above example withdummy variables.In the fist row (8:30) I have that two dummies happen at the sametime and also in the last row (10:00).I want to construct a table, in which I have the number of times( for each interval throughout my whole sample) I have that eventsD1 and D4 happen together and D2 and D3 happen together and so onfor all

**References**:**st: Table to count how many times an event occurs with another***From:*Katia Bobulova <katia.bobulova@googlemail.com>

**Re: st: Table to count how many times an event occurs with another***From:*Nick Cox <njcoxstata@gmail.com>

**Re: st: Table to count how many times an event occurs with another***From:*Katia Bobulova <katia.bobulova@googlemail.com>

**Re: st: Table to count how many times an event occurs with another***From:*Anders Alexandersson <andersalex@gmail.com>

**Re: st: Table to count how many times an event occurs with another***From:*Katia Bobulova <katia.bobulova@googlemail.com>

**RE: st: Table to count how many times an event occurs with another***From:*"MacLennan, Graeme" <g.maclennan@abdn.ac.uk>

**Re: st: Table to count how many times an event occurs with another***From:*Katia Bobulova <katia.bobulova@googlemail.com>

- Prev by Date:
**Re: st: Making vce(robust) the default** - Next by Date:
**Re: st: Creating new variables from a STATA panel dataset** - Previous by thread:
**Re: st: Table to count how many times an event occurs with another** - Next by thread:
**Re: st: Table to count how many times an event occurs with another** - Index(es):