Hi everyone, I am working with a panel data about the living conditions of individuals in different countries and I have observations covering the period 2012-2015. Every individual is identified by an ID and he/she is present in the panel for at least 3 years. I created a dummy variable (poverty) taking value 1 if the individual was poor in a certain year and 0 otherwise. Now, I would like to count how many individuals were poor for 0,1,2,3 or 4 periods. Do you have any suggestions? Maybe it is easier than I think.
Thanks in advance for your help!
Andrea
Related Posts with Count occurences of a dummy variable by ID in panel data
Identification tests under ivreg2Dear Statalisters, I am running an ivreg2 estimation. I am not too sure on how to interpret these r…
Importing several csv files in stata at onceHi! I have a lot of csv files that I would like to import to stata the easiest way possible. Is it p…
Events not recognized, multiple events per groupHi there, Im currently working on a project in which i have to compute the marketcap of an acquirer…
About Random Survival Forest Analysis using Stata Good morning at the Stata Forum! Random Survival Forest is specifically suitable for exploratory an…
Assigning random number from list to regression stored nameHello, I want to run several regressions and store them. The name should contain a number randomly …
Subscribe to:
Post Comments (Atom)
0 Response to Count occurences of a dummy variable by ID in panel data
Post a Comment