-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #653 from worldbank/arm_lfs_update
Arm lfs update
- Loading branch information
Showing
15 changed files
with
16,442 additions
and
11 deletions.
There are no files selected for viewing
1,835 changes: 1,835 additions & 0 deletions
1,835
...RM/ARM_2014_LFS/ARM_2014_LFS_V01_M_V03_A_GLD/Programs/ARM_2014_LFS_V01_M_V03_A_GLD_ALL.do
Large diffs are not rendered by default.
Oops, something went wrong.
1,843 changes: 1,843 additions & 0 deletions
1,843
...RM/ARM_2015_LFS/ARM_2015_LFS_V01_M_V03_A_GLD/Programs/ARM_2015_LFS_V01_M_V03_A_GLD_ALL.do
Large diffs are not rendered by default.
Oops, something went wrong.
1,846 changes: 1,846 additions & 0 deletions
1,846
...RM/ARM_2016_LFS/ARM_2016_LFS_V01_M_V03_A_GLD/Programs/ARM_2016_LFS_V01_M_V03_A_GLD_ALL.do
Large diffs are not rendered by default.
Oops, something went wrong.
1,840 changes: 1,840 additions & 0 deletions
1,840
...RM/ARM_2017_LFS/ARM_2017_LFS_V01_M_V03_A_GLD/Programs/ARM_2017_LFS_V01_M_V03_A_GLD_ALL.do
Large diffs are not rendered by default.
Oops, something went wrong.
1,796 changes: 1,796 additions & 0 deletions
1,796
...RM/ARM_2018_LFS/ARM_2018_LFS_V01_M_V03_A_GLD/Programs/ARM_2018_LFS_V01_M_V03_A_GLD_ALL.do
Large diffs are not rendered by default.
Oops, something went wrong.
1,807 changes: 1,807 additions & 0 deletions
1,807
...RM/ARM_2019_LFS/ARM_2019_LFS_V01_M_V03_A_GLD/Programs/ARM_2019_LFS_V01_M_V03_A_GLD_ALL.do
Large diffs are not rendered by default.
Oops, something went wrong.
1,785 changes: 1,785 additions & 0 deletions
1,785
...RM/ARM_2020_LFS/ARM_2020_LFS_V01_M_V03_A_GLD/Programs/ARM_2020_LFS_V01_M_V03_A_GLD_ALL.do
Large diffs are not rendered by default.
Oops, something went wrong.
1,795 changes: 1,795 additions & 0 deletions
1,795
...RM/ARM_2021_LFS/ARM_2021_LFS_V01_M_V03_A_GLD/Programs/ARM_2021_LFS_V01_M_V03_A_GLD_ALL.do
Large diffs are not rendered by default.
Oops, something went wrong.
1,794 changes: 1,794 additions & 0 deletions
1,794
...RM/ARM_2022_LFS/ARM_2022_LFS_V01_M_V03_A_GLD/Programs/ARM_2022_LFS_V01_M_V03_A_GLD_ALL.do
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 70 additions & 0 deletions
70
Support/B - Country Survey Details/ARM/LFS/utilities/Comparison_weights.do
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
clear | ||
|
||
*---- Append 2014 to 2022 data | ||
foreach year of numlist 2014/2022 { | ||
|
||
append using "Y:/GLD/ARM/ARM_`year'_LFS\ARM_`year'_LFS_V01_M_V03_A_GLD/Data/Harmonized/ARM_`year'_LFS_V01_M_V03_A_GLD_ALL.dta" | ||
|
||
|
||
} | ||
|
||
*---- Create variables for comparison | ||
gen lfp_old_series = . | ||
replace lfp_old_series = weight if inlist(lstatus,1,2) & inrange(year,2014,2017) | ||
replace lfp_old_series = weight_old_series if inlist(lstatus,1,2) & inrange(year,2018,2019) | ||
|
||
gen wap_old_series = . | ||
replace wap_old_series = weight if inlist(lstatus,1,2,3) & inrange(year,2014,2017) | ||
replace wap_old_series = weight_old_series if inlist(lstatus,1,2,3) & inrange(year,2018,2019) | ||
|
||
gen lfp_new_series = . | ||
replace lfp_new_series = weight if inlist(lstatus,1,2) & inrange(year,2018,2022) | ||
|
||
gen wap_new_series = . | ||
replace wap_new_series = weight if inlist(lstatus,1,2,3) & inrange(year,2018,2022) | ||
|
||
gen lfp_cmb_series = . | ||
replace lfp_cmb_series = weight if inlist(lstatus,1,2) | ||
|
||
gen wap_cmb_series = . | ||
replace wap_cmb_series = weight if inlist(lstatus,1,2,3) | ||
|
||
|
||
*---- Collapse data to get by year | ||
collapse (sum) lfp_* wap_*, by(year) | ||
|
||
// Loop through all variables in the dataset | ||
foreach var of varlist * { | ||
// Replace 0 with missing value (.) | ||
replace `var' = . if `var' == 0 | ||
} | ||
*list | ||
|
||
*---- Add in official data | ||
|
||
gen lfp_off = . | ||
replace lfp_off = 1375700 if year == 2014 | ||
replace lfp_off = 1316400 if year == 2015 | ||
replace lfp_off = 1226300 if year == 2016 | ||
replace lfp_off = 1230700 if year == 2017 | ||
replace lfp_off = 1293800 if year == 2018 | ||
replace lfp_off = 1318100 if year == 2019 | ||
replace lfp_off = 1286700 if year == 2020 | ||
replace lfp_off = 1287300 if year == 2021 | ||
replace lfp_off = 1311300 if year == 2022 | ||
|
||
|
||
*---- Plot | ||
|
||
// Determine the range of years | ||
summarize year | ||
local min_year = r(min) | ||
local max_year = r(max) | ||
|
||
twoway (line lfp_old_series year) (line lfp_new_series year) (line lfp_off year), /// | ||
title("Plot of ARM LFP over years by weight variable") /// | ||
xlabel(`min_year'(1)`max_year', grid) ylabel(, grid) /// | ||
legend(order(1 "LFP with weight 204-17, old weigth 2018-19" 2 "LFP with weight 2018-2022" 3 "LFP ARMSTAT Data") /// | ||
position(6) row(3)) | ||
|
||
gr export "Y:/GLD/ARM/ARM_2022_LFS/ARM_2022_LFS_V01_M_V03_A_GLD/Work/weight_timelines.png", replace |
Binary file added
BIN
+72.1 KB
Support/B - Country Survey Details/ARM/LFS/utilities/Error_pop_move_2018_eng.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+307 KB
Support/B - Country Survey Details/ARM/LFS/utilities/in-exclusion_from_2018.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+44.5 KB
Support/B - Country Survey Details/ARM/LFS/utilities/in-exclusion_til_2017.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+88.3 KB
Support/B - Country Survey Details/ARM/LFS/utilities/weight_timelines.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.