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
Specify interaction/square terms with xtabond2 & xtdpdgmmDear all, First of all, I would like to confirm that I have searched and read many posts here but n…
Intra-obsever variabilityDear colleagues can I still use kap in stata for intra-observer variability? I have two readings by …
Constucting the KZ IndexHello everyone, I have a hard time on how to figure out how to construct the KZ index based on http…
How to do DID Analysis using stata?Hello everyone, I am a student at a university and i am very new to DID analysis. The purpose of my …
Generating change in levels as well as percentages from stataHi All, I have a dataset which resembles the following: x y 1 2 2 4 3 6 I have two variables her…
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