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
RE: Calculating R^2Hi! After the logistic regression, I wanted to directly calculate R^2 (= SSreg/SStotal) without usi…
backed up error for probit even when I loosen all tolerancesThis is the option I am adding to the ivprobit that I am using. difficult first tolerance(10) ltole…
Create observations (i.e. adding a row) in the datasetHello everyone. Thank you for your time to read my question. The below dataset consists of countries…
students fixed effects panel with two days and 3 yearsHi Statalist fellows! Please, could anyone help me? I have data set at student level. Each student t…
Help regarding "reshape"I have the following data for 500 companies in excel format. I am showing below the example with 2 c…
Subscribe to:
Post Comments (Atom)
0 Response to Reorganising panel data
Post a Comment