* stata_codebook.do - attach long-form notes to the .dta files (run once in Stata). * Generated by build_data_dictionary.py - do not edit by hand. * ---- brexit_analysis.dta ---- use "brexit_analysis.dta", clear label data "Brexit estimation panel: 24 OECD countries, 1995Q1-2020Q4" note _dta: Byte-identical copy of the post-root brexit_analysis.csv (and of r_sc_dsc_sdid/brexit_analysis.csv). Built by r_sc_dsc_sdid/prepare_data.R from the de Brabander, Juodis and Miyazato Szini (2025) replication package. Treatment at 2016Q3 (t = 87); T0 = 86; evaluation at 2018Q4 (t = 96) and 2019Q4 (t = 100). Values from 2018Q4 on are OECD projections. note country: OECD country name, in English, as stored in the source file.. Units: text. Source: OECD Economic Outlook, via the replication package note year: Calendar year of the quarter.. Units: year note quarter: Quarter within the calendar year: 1 = January-March, ?, 4 = October-December.. Units: 1-4 note quarter_label: Human-readable quarter, year followed by Q and the quarter number. Sorts correctly as text.. Construction: year + 'Q' + quarter. Units: text note date_dec: Time as a decimal year, the start of the quarter: year + (quarter - 1)/4. Convenient for plotting on a continuous axis.. Construction: year + (quarter - 1) / 4. Units: years note t: Consecutive quarter index used as the time variable. Key values: 86 = 2016Q2 (last pre-treatment quarter), 87 = 2016Q3 (treatment), 96 = 2018Q4 and 100 = 2019Q4 (evaluation quarters).. Construction: 4 x (year - 1995) + quarter. Units: quarters note unit_id: Integer country identifier in alphabetical order of country. The United Kingdom is 23.. Units: 1-24 note log_rgdp: Natural log of real GDP divided by the country's own 1995 average, so it is about 0 in 1995 and approximates cumulative growth since then. The outcome of every estimator in the post.. Construction: ln(real_gdp) = ln(real_gdp_raw / mean of real_gdp_raw over 1995Q1-1995Q4). Units: log points (0.01 ? 1%). Source: OECD Economic Outlook (Nov 2018 vintage), normalised by Born et al. (2019) note cons_share: Private consumption as a share of GDP, both in real (volume) terms.. Construction: real_con_raw / real_gdp_raw. Units: ratio (0.54 = 54% of GDP). Source: OECD Economic Outlook; construction as in the replication code note inv_share: Investment as a share of GDP, both in real terms.. Construction: real_inv_raw / real_gdp_raw. Units: ratio. Source: OECD Economic Outlook; construction as in the replication code note exp_share: Exports of goods and services as a share of GDP, both in real terms. Can exceed 1 in re-export economies (Luxembourg, Ireland, Hungary).. Construction: real_exp_raw / real_gdp_raw. Units: ratio. Source: OECD Economic Outlook; construction as in the replication code note imp_share: Imports of goods and services as a share of GDP, both in real terms. Can exceed 1 in re-export economies.. Construction: real_imp_raw / real_gdp_raw. Units: ratio. Source: OECD Economic Outlook; construction as in the replication code note labprod_growth: Quarter-on-quarter growth of real GDP per worker, in percent (not annualised).. Construction: 100 x ?ln(lab_prod_raw), computed on the full series from 1960, so 1995Q1 has a value. Units: percent per quarter. Source: OECD Economic Outlook; construction as in the replication code note emp_pop: Total employment as a share of the working-age population (the employment rate).. Construction: tot_emp_pc_raw = tot_emp_raw / pop_quarterly. Units: ratio (0.62 = 62%). Source: OECD Economic Outlook note is_treated_unit: Marks the treated country in every quarter, before and after the referendum. Separates the UK from the 23 donors.. Construction: country == 'United Kingdom'. Units: 0/1 note treated: 1 for the United Kingdom in the quarters after the headline treatment date (2016Q3-2020Q4, 18 rows), 0 otherwise, including the UK before 2016Q3. This is the 'under treatment now' convention that mlsynth expects in its treat field.. Construction: is_treated_unit == 1 and t >= 87. Units: 0/1 save "brexit_analysis.dta", replace * ---- brexit_panel_wide.dta ---- use "brexit_panel_wide.dta", clear label data "Full OECD source panel: 36 countries, 1960Q1-2020Q4, 12 series" note _dta: Lossless pivot of r_sc_dsc_sdid/brexit_panel_long.csv by make_wide_panel.py (values rounded to 10 significant digits by prepare_data.R). in_estimation_sample is the only derived column. Filter in_estimation_sample == 1 and 1995Q1-2020Q4 to recover the countries and quarters of brexit_analysis. note country: OECD country name, in English, as stored in the source file.. Units: text. Source: OECD Economic Outlook, via the replication package note year: Calendar year of the quarter.. Units: year note quarter: Quarter within the calendar year: 1 = January-March, ?, 4 = October-December.. Units: 1-4 note quarter_label: Human-readable quarter, year followed by Q and the quarter number. Sorts correctly as text.. Construction: year + 'Q' + quarter. Units: text note date_dec: Time as a decimal year, the start of the quarter: year + (quarter - 1)/4. Convenient for plotting on a continuous axis.. Construction: year + (quarter - 1) / 4. Units: years note in_estimation_sample: Derived flag: 1 for the 24 countries kept in the estimation sample, 0 for the 12 dropped for incomplete data. Constant within a country.. Construction: country is in brexit_analysis.csv (make_wide_panel.py). Units: 0/1. Source: This page (derived) note real_gdp: Real GDP divided by its own 1995 average. ln(real_gdp) is log_rgdp.. Construction: real_gdp_raw / mean of real_gdp_raw over 1995Q1-1995Q4. Units: index (1995 = 1). Source: Born et al. (2019), from the OECD Economic Outlook note real_gdp_raw: Gross domestic product in volume terms.. Units: national currency, real (volume) terms; base year and seasonal adjustment not documented in the source. Source: OECD Economic Outlook (Nov 2018 vintage) note real_con_raw: Private final consumption expenditure in volume terms.. Units: national currency, real (volume) terms (as real_gdp_raw). Source: OECD Economic Outlook (Nov 2018 vintage) note real_inv_raw: Investment in volume terms.. Units: national currency, real (volume) terms (as real_gdp_raw). Source: OECD Economic Outlook (Nov 2018 vintage) note real_exp_raw: Exports of goods and services in volume terms.. Units: national currency, real (volume) terms (as real_gdp_raw). Source: OECD Economic Outlook (Nov 2018 vintage) note real_imp_raw: Imports of goods and services in volume terms.. Units: national currency, real (volume) terms (as real_gdp_raw). Source: OECD Economic Outlook (Nov 2018 vintage) note real_gov_raw: Government final consumption expenditure in volume terms. Not used by the post or by the replication code.. Units: national currency, real (volume) terms (as real_gdp_raw). Source: OECD Economic Outlook (Nov 2018 vintage) note tot_emp_raw: Number of people employed.. Units: persons. Source: OECD Economic Outlook (Nov 2018 vintage) note tot_emp_pc_raw: Total employment as a share of the working-age population. Equals emp_pop in brexit_analysis.. Construction: tot_emp_raw / pop_quarterly (exact identity in the data). Units: ratio. Source: OECD Economic Outlook (Nov 2018 vintage) note lab_prod_raw: Real GDP per employed person. Its quarterly log change is labprod_growth.. Construction: real_gdp_raw / tot_emp_raw (exact identity in the data). Units: national currency per worker. Source: OECD Economic Outlook (Nov 2018 vintage) note unemp_rate_raw: Unemployed as a share of the labour force. Not used by the post.. Units: fraction (0.05 = 5%). Source: OECD Economic Outlook (Nov 2018 vintage) note pop_quarterly: Working-age population, the denominator of the employment rate. Identified by the exact identity tot_emp_pc_raw = tot_emp_raw / pop_quarterly and by the paper's definition of the employment share; the age bounds are not documented in the source.. Units: persons. Source: OECD Economic Outlook (Nov 2018 vintage) save "brexit_panel_wide.dta", replace