I have Panel data ranging over 8 time periods (quarters).
For each individual, there are 4 quarters worth of data for each variable.
Array
Each variable is written like so: AGE1, AGE2, AGE3, AGE4, AGE5, AGE6, AGE7, AGE8.
Instead, I would like to have just one AGE variable, but a separate column for QUARTER where I specify quarters 1-8. How can I do this? On excel or stata is fine.
My aim is to create a dummy variable for pre/post 1st April 2016. So I want to be able to tell stata that Q1-4 = 0 and Q5-8 = 1.
(My data is the one with PERSID at the top left, taken from LFS. The other image is from an example dataset which I want to imitate.)Array Array
Related Posts with Reorganising panel data
Difference-in-Difference in StataHi there, apologies in advance if this question is a bit novice. I am tasked with a school assignme…
Renaming a set of variables with a single commandHi there, I have a two time period data (baseline in 2014 and midline in 2016). The variables in th…
creating 5 year averagesHi all, I am working with a data set that has event data at the district-month level where Code: …
General Question Hi all, I have a question. Using xtdpdsys I get a note accompanying the output that says "ir droppe…
Mann-Kendall TestHi... I am working on the different attributes of female from 2003 to 2017. I want to see the trend …
Subscribe to:
Post Comments (Atom)
0 Response to Reorganising panel data
Post a Comment