Hello all,
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 a 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 below. There is a variable "PERSID", which means persistent identifier, a variable "FLOW", which means Categories relating to labour force gross flows, and variable "FLEXW73", which means a worker who has a zero-hours contract.
note that: because I have longitudinal data the majority of variables are repeated 5 times, on other words, the variable "FLEXW71" this for quarter 1 and "FLEXW72" is for quarter 2 and so on...
my question :
how can I use this variable " PERSID" as a time variable? For example, if I need to define the flow of some worker's group ( FLEXW73) from the first quarter until the last quarter ( increase or decrease of workers in this type of contract ). what do I have to do in this case?
Any suggestions on how to go about commanding the dataset?
input double PERSID byte(FLOW anflow FLEXW73)
210292030101 3 1 1
400192040101 3 11 1
480892050102 3 1 1
600292010103 3 1 1
610392030101 3 1 1
630392070101 3 1 1
640892040102 3 1 1
790292040101 3 1 1
860792020101 3 1 1
910492010102 5 22 1
1020292020103 3 1 1
1110392030101 6 7 1
1201092020101 3 1 1
1230392030101 3 1 1
1240192040101 3 1 1
1280692060102 3 1 1
end
label values FLOW FLOW
label def FLOW 3 "In employment at first quarter; in employment at final quarter (EE)", modify
label def FLOW 4 "In employment at first quarter; unemployed at final quarter (EU)", modify
label def FLOW 5 "In employment at first quarter; inactive at final quarter (EN)", modify
label def FLOW 6 "Unemployed at first quarter; in employment at final quarter (UE)", modify
label def FLOW 9 "Inactive at first quarter; in employment at final quarter (NE)", modify
label def FLOW 10 "Inactive at first quarter; unemployed at final quarter (NU)", modify
label def FLOW 11 "Inactive at first quarter; inactive at final quarter (NN)", modify
label values anflow anflow
label def anflow 1 "In employment in all quarters (E)", modify
label def anflow 4 "In employment at first quarter; unemployed at final quarter (EU)", modify
label def anflow 5 "In employment at first quarter; inactive at final quarter (EN)", modify
label def anflow 7 "Unemployed at first quarter; in employment at final quarter (UE)", modify
label def anflow 8 "Inactive at first quarter; in employment at final quarter (NE)", modify
label def anflow 10 "Employed at first; unemployed; in employment at final quarter(EUE)", modify
label def anflow 11 "Employed at first; inactive; in employment at final quarter (ENE)", modify
label def anflow 14 "Inactive at first; employed; inactive at final quarter (NEN)", modify
label def anflow 21 "Inactive at first; unemployed; employed at final quarter (NUE)", modify
label def anflow 22 "3 or 4 moves between categories", modify
label values FLEXW73 FLEXW73
label def FLEXW73 1 "Yes", modify
Thank you,
Ali
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 a 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 below. There is a variable "PERSID", which means persistent identifier, a variable "FLOW", which means Categories relating to labour force gross flows, and variable "FLEXW73", which means a worker who has a zero-hours contract.
note that: because I have longitudinal data the majority of variables are repeated 5 times, on other words, the variable "FLEXW71" this for quarter 1 and "FLEXW72" is for quarter 2 and so on...
my question :
how can I use this variable " PERSID" as a time variable? For example, if I need to define the flow of some worker's group ( FLEXW73) from the first quarter until the last quarter ( increase or decrease of workers in this type of contract ). what do I have to do in this case?
Any suggestions on how to go about commanding the dataset?
input double PERSID byte(FLOW anflow FLEXW73)
210292030101 3 1 1
400192040101 3 11 1
480892050102 3 1 1
600292010103 3 1 1
610392030101 3 1 1
630392070101 3 1 1
640892040102 3 1 1
790292040101 3 1 1
860792020101 3 1 1
910492010102 5 22 1
1020292020103 3 1 1
1110392030101 6 7 1
1201092020101 3 1 1
1230392030101 3 1 1
1240192040101 3 1 1
1280692060102 3 1 1
end
label values FLOW FLOW
label def FLOW 3 "In employment at first quarter; in employment at final quarter (EE)", modify
label def FLOW 4 "In employment at first quarter; unemployed at final quarter (EU)", modify
label def FLOW 5 "In employment at first quarter; inactive at final quarter (EN)", modify
label def FLOW 6 "Unemployed at first quarter; in employment at final quarter (UE)", modify
label def FLOW 9 "Inactive at first quarter; in employment at final quarter (NE)", modify
label def FLOW 10 "Inactive at first quarter; unemployed at final quarter (NU)", modify
label def FLOW 11 "Inactive at first quarter; inactive at final quarter (NN)", modify
label values anflow anflow
label def anflow 1 "In employment in all quarters (E)", modify
label def anflow 4 "In employment at first quarter; unemployed at final quarter (EU)", modify
label def anflow 5 "In employment at first quarter; inactive at final quarter (EN)", modify
label def anflow 7 "Unemployed at first quarter; in employment at final quarter (UE)", modify
label def anflow 8 "Inactive at first quarter; in employment at final quarter (NE)", modify
label def anflow 10 "Employed at first; unemployed; in employment at final quarter(EUE)", modify
label def anflow 11 "Employed at first; inactive; in employment at final quarter (ENE)", modify
label def anflow 14 "Inactive at first; employed; inactive at final quarter (NEN)", modify
label def anflow 21 "Inactive at first; unemployed; employed at final quarter (NUE)", modify
label def anflow 22 "3 or 4 moves between categories", modify
label values FLEXW73 FLEXW73
label def FLEXW73 1 "Yes", modify
Thank you,
Ali
Comment