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
Multi level models and robust clustering of SEI am using multi level modelling for hiererchical survey data (students nested within schools nested…
PMG model in Stata 16 IChello guys, I a running a PMG model in Stata 16 IC on my MacBook. I have 41 countries and 13 variabl…
Longitudinal latent class analysis or latent transition analysis possible in Stata 16?Dear Statalist users, Colleagues and I want to analyse if and how parenthood ideals change over tim…
How copy database only with variable codes into ExcelHello! Explain me please. I have a database. I need to copy the table only with the "value label" an…
How can I get theta for Inverse hyperbolic sine transformation by mle?Hi,everyone I want to use mle to estimate theta for Inverse hyperbolic sine transformation , I have …
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