Skip to content

AB_SILC_construction_files - #188

Merged
Mariia-Var merged 11 commits into
mainfrom
AB_SILC_construction_files
Jul 9, 2026
Merged

AB_SILC_construction_files#188
Mariia-Var merged 11 commits into
mainfrom
AB_SILC_construction_files

Conversation

@ANBurdett

Copy link
Copy Markdown
Contributor

Added:

  • Do-files to create SILC panel data 2005-2023.
  • README files for the overall data construction workflow and for constructing the SILC panel specifically.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds Stata do-files and READMEs to support constructing EU‑SILC longitudinal panel data (2005–2023) and building/validating Poland (PL) UID inputs for SimPaths EU.

Changes:

  • Added an extended EU‑SILC 2005–2023 panel construction workflow (master + masterH/R/P + weight rescaling).
  • Added PL UID construction do-files for benefit-unit creation, reweighting, slicing/refactoring, and yearly checks.
  • Added helper scripts/docs for merging selected variables from the 2005–2020 panel into the 2005–2023 panel, plus workflow READMEs.

Reviewed changes

Copilot reviewed 9 out of 19 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
input_processing/regression_estimates/PL/00_master_regression_estimates_PL.do Adds a note clarifying prerequisites (conditions master).
input_processing/data_construction/UID_construction/PL/extra_var_info/vars_05_20_PL2.do New helper to extract legacy variables from 2005–2020 panel for later merge.
input_processing/data_construction/UID_construction/PL/extra_var_info/prepare_pooled_data _05_20.do New helper to compile a 2005–2020 pooled dataset used for legacy-variable extraction.
input_processing/data_construction/UID_construction/UID_construction/PL/07_version_comparison_PL.do New diagnostic script to compare “new vs old” versions and investigate drops.
input_processing/data_construction/UID_construction/PL/06_check_yearly_data_PL.do New script to generate yearly summary stats / checks for PL initial populations.
input_processing/data_construction/UID_construction/PL/05_drop_hholds_slice_and_refactoring_PL.do New script to drop incomplete households, adjust weights to population totals, slice to cross-sections, and rename to “refactored” codebook variables.
input_processing/data_construction/UID_construction/PL/04_reweight_PL.do New script to reweight using inverse-probability model of household completeness and slice “pre-drop” yearly files.
input_processing/data_construction/UID_construction/PL/03_create_benefit_units_PL.do New core script to construct benefit units, enforce consistency rules, flag/drop invalid records, and update derived variables.
input_processing/data_construction/UID_construction/PL/01_prepare_pooled_data_PL.do New script to build the pooled PL panel dataset by merging R/P/D/H master files.
input_processing/data_construction/UID_construction/PL/00_master_data_set_construction_PL.do Updates notes to point to PL-specific conditions master.
input_processing/data_construction/SILC_panel_construction/README_SILC_panel_construction.txt New documentation describing why/ how the 2005–2020 + 2005–2023 panels are combined.
input_processing/data_construction/SILC_panel_construction/2005_2023_panel/do_files/05_weights.do New weight-rescaling do-file (includes optional cleanup of intermediates).
input_processing/data_construction/SILC_panel_construction/2005_2023_panel/do_files/04_create_masterP.do New script to build masterP across releases (2005–2023).
input_processing/data_construction/SILC_panel_construction/2005_2023_panel/do_files/03_create_masterR.do New script to build masterR across releases (2005–2023).
input_processing/data_construction/SILC_panel_construction/2005_2023_panel/do_files/02_create_masterH.do New script to build masterH across releases (2005–2023).
input_processing/data_construction/SILC_panel_construction/2005_2023_panel/do_files/00_master_construct_eusilc_panel.do New master script to run the end-to-end EU‑SILC panel build (imports + master build + weights).
input_processing/data_construction/README_data_construction.txt New high-level documentation for SimPaths input dataset construction workflow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


do "$do_files_dir/Long_allcountries_Rfiles_`i'.do"
}
*/
* DEFINE DIRECTORIES
*******************************************************************************/

global main_dir "/Users/aburdett/Library/CloudStorage/Box-Box/ESPON - OVERLAP/_countries/Cumulative Longitudional Dataset (all countries)/2005_2023_panel" // master folder for processing
Comment on lines +35 to +39
/* Erasing superflous files from the disc */

erase "${datapath}/EU-SILC/19 L-2023/2023D.dta"
// erase "${datapath}/EU-SILC/19 L-2023/2023H.dta"
erase "${datapath}/EU-SILC/19 L-2023/2023P.dta"
@Mariia-Var
Mariia-Var merged commit dc16975 into main Jul 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants