-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path02-labour-force-participation.do
178 lines (124 loc) · 5.71 KB
/
02-labour-force-participation.do
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
/*------------------------------------------------------
File: 02-labour-force-participation.do
Purpose: To Analyse LFPR using EUS and PLFS between 1993-94 and 2022-23 for ICSE paper
Author: Sarika Chaudhary
Date: 20/08/2024
------------------------------------------------------*/
capture log close
clear all
set more off
global path "/Users/sarika/Library/CloudStorage/OneDrive-Personal/01-projects/icse/"
drop _all
/*------------------------------------------------------
Labour Force 2022-23
------------------------------------------------------*/
use "$path/3-data/plfs2022-23.dta"
destring age sector status_code_ps status_code_ss sex, replace
drop if sex == 3
rename i_census_corrected_weight i_census_weight
gen upss=.
replace upss=status_code_ps
replace upss=status_code_ss if status_code_ps>51 & status_code_ss<=51
tab upss
// Labour Force Participation Rate
recode upss (min/81=1) (91/max=0), gen (lfpr_upss)
tab lfpr_upss sex [iwe= i_census_weight ] if age >= 18 & age <= 67, col nofreq
bysort sector : tab lfpr_upss sex [iwe= i_census_weight ] if age >= 18 & age <= 67, col nofreq
// Labour Force in Absolute Numbers
tab lfpr_upss sex [iwe= i_census_weight ] if age >= 18 & age <= 67
bysort sector : tab lfpr_upss sex [iwe= i_census_weight ] if age >= 18 & age <= 67
/*------------------------------------------------------
Labour Force 2017-18
------------------------------------------------------*/
clear
use "$path/3-data/plfs2017-18.dta"
destring age sector status_code_ps status_code_ss sex, replace
drop if sex == 3
rename i_census_corrected_weight i_census_weight
gen upss=.
replace upss=status_code_ps
replace upss=status_code_ss if status_code_ps>51 & status_code_ss<=51
tab upss
// Labour Force Participation Rate
recode upss (min/81=1) (91/max=0), gen (lfpr_upss)
tab lfpr_upss sex [iwe= i_census_weight ] if age >= 18 & age <= 67, col nofreq
bysort sector : tab lfpr_upss sex [iwe= i_census_weight ] if age >= 18 & age <= 67, col nofreq
// Labour Force in Absolute Numbers
tab lfpr_upss sex [iwe= i_census_weight ] if age >= 18 & age <= 67
bysort sector : tab lfpr_upss sex [iwe= i_census_weight ] if age >= 18 & age <= 67
/*------------------------------------------------------
Labour Force 2011-12
------------------------------------------------------*/
clear
use "$path/3-data/eus2011-12.dta"
destring age sector status_code_ps status_code_ss sex, replace
drop if sex == 3
rename i_census_adj_weight i_census_weight
gen upss=.
replace upss=status_code_ps
replace upss=status_code_ss if status_code_ps>51 & status_code_ss<=51
tab upss
// Labour Force Participation Rate
recode upss (min/81=1) (91/max=0), gen (lfpr_upss)
tab lfpr_upss sex [iwe= i_census_weight ] if y == 1 & age >= 18 & age <= 67, col nofreq
bysort sector : tab lfpr_upss sex [iwe= i_census_weight ] if y == 1 & age >= 18 & age <= 67, col nofreq
// Labour Force in Absolute Numbers
tab lfpr_upss sex [iwe= i_census_weight ] if y == 1 & age >= 18 & age <= 67
bysort sector : tab lfpr_upss sex [iwe= i_census_weight ] if y == 1 & age >= 18 & age <= 67
/*------------------------------------------------------
Labour Force 2004-05
------------------------------------------------------*/
clear
use "$path/3-data/eus2004-05.dta"
destring age sector status_code_ps status_code_ss sex, replace
drop if sex == 3
rename i_census_adj_weight i_census_weight
gen upss=.
replace upss=status_code_ps
replace upss=status_code_ss if status_code_ps>51 & status_code_ss<=51
tab upss
// Labour Force Participation Rate
recode upss (min/81=1) (91/max=0), gen (lfpr_upss)
tab lfpr_upss sex [iwe= i_census_weight ] if y == 1 & age >= 18 & age <= 67, col nofreq
bysort sector : tab lfpr_upss sex [iwe= i_census_weight ] if y == 1 & age >= 18 & age <= 67, col nofreq
// Labour Force in Absolute Numbers
tab lfpr_upss sex [iwe= i_census_weight ] if y == 1 & age >= 18 & age <= 67
bysort sector : tab lfpr_upss sex [iwe= i_census_weight ] if y == 1 & age >= 18 & age <= 67
/*------------------------------------------------------
Labour Force 1999-00
------------------------------------------------------*/
clear
use "$path/3-data/eus1999-00.dta"
destring age sector status_code_ps status_code_ss sex, replace
drop if sex == 3
rename i_census_adj_weight i_census_weight
gen upss=.
replace upss=status_code_ps
replace upss=status_code_ss if status_code_ps>51 & status_code_ss<=51
tab upss
// Labour Force Participation Rate
recode upss (min/81=1) (91/max=0), gen (lfpr_upss)
tab lfpr_upss sex [iwe= i_census_weight ] if y == 1 & age >= 18 & age <= 67, col nofreq
bysort sector : tab lfpr_upss sex [iwe= i_census_weight ] if y == 1 & age >= 18 & age <= 67, col nofreq
// Labour Force in Absolute Numbers
tab lfpr_upss sex [iwe= i_census_weight ] if y == 1 & age >= 18 & age <= 67
bysort sector : tab lfpr_upss sex [iwe= i_census_weight ] if y == 1 & age >= 18 & age <= 67
/*------------------------------------------------------
Labour Force 1993-94
------------------------------------------------------*/
clear
use "$path/3-data/eus1993-94.dta"
destring age sector status_code_ps status_code_ss sex, replace
drop if sex == 3
rename i_census_adj_weight i_census_weight
gen upss=.
replace upss=status_code_ps
replace upss=status_code_ss if status_code_ps>51 & status_code_ss<=51
tab upss
// Labour Force Participation Rate
recode upss (min/81=1) (91/max=0), gen (lfpr_upss)
tab lfpr_upss sex [iwe= i_census_weight ] if y == 1 & age >= 18 & age <= 67, col nofreq
bysort sector : tab lfpr_upss sex [iwe= i_census_weight ] if y == 1 & age >= 18 & age <= 67, col nofreq
// Labour Force in Absolute Numbers
tab lfpr_upss sex [iwe= i_census_weight ] if y == 1 & age >= 18 & age <= 67
bysort sector : tab lfpr_upss sex [iwe= i_census_weight ] if y == 1 & age >= 18 & age <= 67