Hello,
I am struggling with a simple bit of summary statistics with panel data and wonder if someone can help.
I have a balanced panel data set with time variable: round (1, 2, 3), and panel variable: id (generated by egen group(householdID))
I have have a dummy variable: shock (1/0) , reported for each id for each round
I would like to count and produce a table that reports the percentage of households/unique ids that experience 0 shocks, 1 shock, 2 shocks and 3 shocks, across the 3 rounds (I do not care whether shocks are consecutive, e.g. a household experiencing a shock in rounds 1 & 3 only I would count as having '2 shocks').
Many thanks
Annie
Related Posts with Panel data 3 rounds: how do I count number of unique IDs for which a dummy=1 in none, one, two or all of the rounds
Drop missing observations at the end of each groupDear Statalist members, I would like to drop missing observations based on their position in the da…
Interpreting triple interaction term with continuous variableDear stata community, I am struggling with the interpretation of Treated x Post x Log(1+Z) with Z b…
opreg with IfHi Profs and Colleagues, I wonder if there is any difference between these two codes #1 & #2. I…
Dynamic Panel Model for Large T and Small N.Hello Everyone, I am working on a problem in which I am assessing the risk of credit default in rel…
Substantive differences between "memory" and "size"What is the difference between "Size" and "Memory" in the Properties/Data tab of the main IDE window…
Subscribe to:
Post Comments (Atom)
0 Response to Panel data 3 rounds: how do I count number of unique IDs for which a dummy=1 in none, one, two or all of the rounds
Post a Comment