Hello,
I have a five-quarter longitudinal dataset from (labour force survey UK LFS) April 2019 to June 2020. LFS has a rotating panel, so we can follow people for five conceive quarters (five waive )
The first thing I need to define is the time index in this panel data, as seen in the example of data is below:
There is a variable "PERSID", which means persistent identifier, a variable "QRTR" which means the Year that addresses the first entered the survey, a variable "FLOW", which means Categories relating to labour force gross flows, variable "FLEXW73", which means a worker who has a zero-hours contract, and variable "HOURPAY" which means how much get per hours worked in a week. Because I have longitudinal data the majority of variables are repeated 5 times, in other words, the variable "HOURPAY1" this for quarter 1, "HOURPAY2" is for quarter 2, "HOURPAY3" is for quarter 3, "HOURPAY4" is for the quarter, and "HOURPAY5" is for quarter 5, however, the variable FLEXW7 IS just start from the third quarter ( the question about this variable just asked tow time per year) and the data set has this variable just for there quarters (FLEXW73, FLEXW74, and FLEXW75), not all quarter.
My questions are :
1- How can I use this variable "QRTR" as a time variable? For example, if I need to define the flow of some worker's group ( FLEXW7) from the third quarter until the last quarter ( increase or decrease of workers in this type of contract ). what do I have to do in this case?
2- Is three any way to append variables "FLEXW73, FLEXW74, and FLEXWE75" to be in one variable? (not that I need to find the flow of this variable over all the quarters )
3- is this dataset in long format or wide format ?
4- how can I use the command to analyse the "FLOW" on FLEXW73 ...5 over each quarter and also in all quarters?
Many thanks,
I have a five-quarter longitudinal dataset from (labour force survey UK LFS) April 2019 to June 2020. LFS has a rotating panel, so we can follow people for five conceive quarters (five waive )
The first thing I need to define is the time index in this panel data, as seen in the example of data is below:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input byte(WEEK W1YR) double(PERSID HOURPAY1) byte(HOURPAY2 HOURPAY3 HOURPAY4) double HOURPAY5 byte(HHLD FLOW FLEXW75 FLEXW74 FLEXW73 QRTR) 7 9 10792030101 -9 -9 -9 -9 -9 1 12 -9 -9 -9 2 12 9 11292020101 7.54 -9 -9 -9 9.5 1 3 2 2 2 2 5 9 20592040101 48.07 -9 -9 -9 43.68 1 3 2 2 2 2 5 9 20592040102 -9 -9 -9 -9 -9 1 3 2 2 2 2 5 9 20592040103 -9 -9 -9 -9 -9 1 2 -9 2 -9 2 end label values WEEK WEEK label values W1YR W1YR label values HOURPAY1 HOURPAY1 label def HOURPAY1 -9 "Does not apply", modify label values HOURPAY2 HOURPAY2 label def HOURPAY2 -9 "Does not apply", modify label values HOURPAY3 HOURPAY3 label def HOURPAY3 -9 "Does not apply", modify label values HOURPAY4 HOURPAY4 label def HOURPAY4 -9 "Does not apply", modify label values HOURPAY5 HOURPAY5 label def HOURPAY5 -9 "Does not apply", modify label values HHLD HHLD label values FLOW FLOW label def FLOW 2 "Entrant to working-age between first and final quarter", modify label def FLOW 3 "In employment at first quarter; in employment at final quarter (EE)", modify label def FLOW 12 "Reached retirement age by final quarter", modify label values FLEXW75 FLEXW75 label def FLEXW75 -9 "Does not apply", modify label def FLEXW75 2 "No", modify label values FLEXW74 FLEXW74 label def FLEXW74 -9 "Does not apply", modify label def FLEXW74 2 "No", modify label values FLEXW73 FLEXW73 label def FLEXW73 -9 "Does not apply", modify label def FLEXW73 2 "No", modify label values QRTR QRTR label def QRTR 2 "AJ (April to June)", modify
There is a variable "PERSID", which means persistent identifier, a variable "QRTR" which means the Year that addresses the first entered the survey, a variable "FLOW", which means Categories relating to labour force gross flows, variable "FLEXW73", which means a worker who has a zero-hours contract, and variable "HOURPAY" which means how much get per hours worked in a week. Because I have longitudinal data the majority of variables are repeated 5 times, in other words, the variable "HOURPAY1" this for quarter 1, "HOURPAY2" is for quarter 2, "HOURPAY3" is for quarter 3, "HOURPAY4" is for the quarter, and "HOURPAY5" is for quarter 5, however, the variable FLEXW7 IS just start from the third quarter ( the question about this variable just asked tow time per year) and the data set has this variable just for there quarters (FLEXW73, FLEXW74, and FLEXW75), not all quarter.
My questions are :
1- How can I use this variable "QRTR" as a time variable? For example, if I need to define the flow of some worker's group ( FLEXW7) from the third quarter until the last quarter ( increase or decrease of workers in this type of contract ). what do I have to do in this case?
2- Is three any way to append variables "FLEXW73, FLEXW74, and FLEXWE75" to be in one variable? (not that I need to find the flow of this variable over all the quarters )
3- is this dataset in long format or wide format ?
4- how can I use the command to analyse the "FLOW" on FLEXW73 ...5 over each quarter and also in all quarters?
Many thanks,
Comment