Readme for replication files for Union Wage Effects in Sweden: Evidence from the Interwar Period

main.do: Produces the main estimates used throughout the paper as well as some descriptives: produces Figure 3, 4, 8, 9, 10, 12, 13,
and tables: 3, 15, 17, 18, 19, 20, 21 (to produce table 21, change the lag structure in main.do)
To obtain the mdqr package run: 'net from "https://raw.githubusercontent.com/bmelly/Stata/main/"', to install ivreg2 run: 'ssc install ivreg'

sampling_testing.r: Produces figure two and estimates used in table 16

union_descriptives.r: Produces figure five, six, tables: 11, 12

figure_seven.do: produces figure 7

table_4.r: Calculates the descriptive statistics used in table 4.

table_6.r: Produces the output for table 6.

union_comparison.r: Loads data necessary to produce table 10 and produces figure 11

table_22.r: Produces table 22.

table_23.r: Produces table 23.

table 24.r: Produces table 24.

table_25.r: Produces table 25.

DATA

All data with names such as: 'table_six_data.csv' provide the relevant data necessary
to reproduce that table.

horsepower_by_county.dta: Is horsepower data taken from the official Swedish industry statistics, se article for more detailed information.

Swedish Public Labor Exchange Data by County, 1914–1975, version 1.0.dta: This is vacancy data from Molinder (2018) DOI: 10.1080/03585522.2018.1433228.

wage_data.dta: This is the main dataset used for the analysis. Data for 1922 comes from: Note that data for 1922 comes from Collin, K., Lundh, C., & Prado, S. (2019). Exploring regional wage dispersion in Swedish manufacturing, 1860–2009. Scandinavian Economic History Review, 67(3), 249–268. https://doi.org/10.1080/03585522.2018.1551242
See paper for detailed discussion on the rest of the data.

union_al.csv, kjellberg_data, union_bp, yearbook_union:
These all contain data used to construct table ten.

SESSIONINFO

To run the R scripts the following session was used:

R version 4.1.3 (2022-03-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045)

Matrix products: default

locale:
[1] LC_COLLATE=Swedish_Sweden.1252  LC_CTYPE=Swedish_Sweden.1252   
[3] LC_MONETARY=Swedish_Sweden.1252 LC_NUMERIC=C                   
[5] LC_TIME=Swedish_Sweden.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] haven_2.5.2     tinytable_0.4.0 stargazer_5.2.3 forcats_0.5.1  
 [5] stringr_1.5.0   dplyr_1.1.2     purrr_1.0.1     readr_2.1.3    
 [9] tidyr_1.3.0     tibble_3.2.1    ggplot2_3.4.4   tidyverse_1.3.2

loaded via a namespace (and not attached):
 [1] pillar_1.9.0        compiler_4.1.3      cellranger_1.1.0   
 [4] dbplyr_2.1.1        tools_4.1.3         lubridate_1.8.0    
 [7] jsonlite_1.8.3      googledrive_2.0.0   lifecycle_1.0.4    
[10] gargle_1.2.0        gtable_0.3.0        pkgconfig_2.0.3    
[13] rlang_1.1.0         reprex_2.0.1        DBI_1.1.1          
[16] cli_3.6.1           rstudioapi_0.13     xfun_0.28          
[19] knitr_1.36          xml2_1.3.3          withr_2.5.0        
[22] httr_1.4.4          generics_0.1.3      vctrs_0.6.1        
[25] fs_1.5.2            hms_1.1.1           googlesheets4_1.0.0
[28] grid_4.1.3          tidyselect_1.2.0    glue_1.6.2         
[31] R6_2.5.1            fansi_1.0.6         readxl_1.4.1       
[34] tzdb_0.3.0          modelr_0.1.8        magrittr_2.0.1     
[37] backports_1.3.0     scales_1.3.0        ellipsis_0.3.2     
[40] rvest_1.0.2         assertthat_0.2.1    colorspace_2.0-2   
[43] utf8_1.2.4          stringi_1.7.12      munsell_0.5.0      
[46] broom_0.7.10        crayon_1.4.2    

