-
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.
Update documentation to take into account changes made in the code
- Loading branch information
Showing
6 changed files
with
101 additions
and
4 deletions.
There are no files selected for viewing
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.