Hello everybody.
I want to track when a group of individuals changes from one employer to another due to privatization, ultimately testing how privatization affects the group by comparing them to a control group. I know when a change occurs (the year and the month) and the involved employers. I have a numeric ID-variable, a numeric EMPLOYER-variable, a YEAR-variable, a MONTH-variable, background variables, and many outcomes. The dataset is in a long format. Let me describe my issue with the following example:
A group of employees changes from employer “100” to employer “200” on Jan 1, 2014. Such a dataset, containing only individuals involved in a particular case of privatization (i.e., only employees who have employer 100 or 200 in 2013 or 2014), would have around 400.000 observations.
I have tried different things like collapsing the dataset by ID and EMPLOYER, followed by duplicating the observations. This approach allows me to count the number of months an individual has an employer in 2013 and 2014. However, I do not know whether the employees shift from 100 to 200 or the other way around. I could browse all the remaining observations and assess them separately, but that is error-prone and time-consuming.
I know that there are many helpful Stata commands for longitudinal data analysis, but not precisely how to deal with this issue. Any help will be great!
Related Posts with Identifying a change in employer in panel data
looping n times, and n is determined by another equationHello, I wish to loop n times, say: forvalues i = 1(1)n{ and n is defined by the last number of i…
Suppress repeated cat axis when using -graph bar, by()-What is the easiest general way to suppress a repeated category axis when using -graph bar, by()-? I…
Questions regarding Modelling both Sample Selection Bias and Endogenous Treatment BiasDear Statalist, Hi. This is the first time I post questions on the forum. I apologize if my post is…
ivregress 2sls not endogenous in original modelHello, Perhaps this is too obvious of a question, but when running the 2sls command on my model I g…
VAR(1) estimation- errors for each observation in the panel dataDear Stata users, I have estimated the VAR(1) model of the form: zt+1=a + Γzt+ ut+1 Where zt+1 is m…
Subscribe to:
Post Comments (Atom)
0 Response to Identifying a change in employer in panel data
Post a Comment