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
Financial development and economic growth: Bootstrap panel Granger causality Approach.This is my first post on this forum. I'm writing my Ph.D Thesis on Financial Development and Econom…
xtabond2: Interaction endogenous and exogenous variableHello everyone, This is my first post here. I have a question about the xtabond2 command. I would …
Problems with fmm package and streg packageHello, I am doing a parametric survival analysis with a loglogistic baseline hazard function. I wil…
Bar graph of 3 categorical variables which have the same responsesHello, Am fairly new to Stata and haven't been able to find the solution googling around - apologie…
How to export multiple tables outputted from a single Stata commandI am running Stata code which gives two tables from a single command. I wish to export the first of …
Subscribe to:
Post Comments (Atom)
0 Response to Count occurences of a dummy variable by ID in panel data
Post a Comment