Replication file for "Immigration and the Sociocultural Divide in Central and Eastern Europe: Stasis or Evolution?" by Caroline Marie Lancaster. Please contact cml93@live.unc.edu with any questions. 

List of files:

EVS_replication_script.R — cleans European Values Study data and runs main analyses on those data
CHES_replication_script.R — cleans CHES data and creates Figures 2 and 3 in main text and Table 11 in Appendix
EB_replication_script — cleans Eurobarometer data and creates Figure 1 in main text and Figures 1-3 in Appendix

Data access:

European Values Study:

EVS (2020): European Values Study 2017: Integrated Dataset (EVS 2017). GESIS Data Archive, Cologne. ZA7500 Data file Version 4.0.0, https://doi.org/10.4232/1.13560

Chapel Hill Expert Survey trend file: 

Bakker, Ryan, Liesbet Hooghe, Seth Jolly, Gary Marks, Jonathan Polk, Jan Rovny, Marco Steenbergen, and Milada Anna Vachudova. 2020. “1999-2019” Chapel Hill Expert Survey Trend File.” Version 1.2. Available on chesdata.eu. 

Eurobarometers: 

European Commission, B. (2018). Eurobarometer 82.3 (2014). http://dx.doi.org/10.
4232/1.13021.
European Commission, B. (2019a). Eurobarometer 84.3 (2015). http://dx.doi.org/10.
4232/1.13249.
European Commission, B. (2020). Eurobarometer 85.2 (2016). http://dx.doi.org/10. 4232/1.13438.
European Commission, B. (2017). Eurobarometer 87.3 (2017). http://dx.doi.org/10.
4232/1.12847.
European Commission, B. (2019b). Eurobarometer 91.5 (2019). https://doi.org/10.
4232/1.13393.

Analyses run in following computing environment:

R version 3.6.3 (2020-02-29)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: OS X  11.1

Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

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

other attached packages:
 [1] survey_4.0        survival_3.1-8    sjPlot_2.7.2      lmerTest_3.1-2   
 [5] lme4_1.1-21       Matrix_1.2-18     semTools_0.5-2    lavaan_0.6-5     
 [9] mice_3.6.0        mirt_1.31         lattice_0.20-38   ggplot2_3.3.2    
[13] magrittr_1.5      dplyr_1.0.3       readstata13_0.9.2

loaded via a namespace (and not attached):
 [1] nlme_3.1-144          insight_0.6.0         numDeriv_2016.8-1.1  
 [4] Deriv_3.9.0           tools_3.6.3           backports_1.1.8      
 [7] R6_2.4.0              vegan_2.5-6           sjlabelled_1.1.1     
[10] rpart_4.1-15          DBI_1.1.1             mgcv_1.8-31          
[13] colorspace_1.4-1      permute_0.9-5         jomo_2.6-10          
[16] nnet_7.3-12           withr_2.1.2           tidyselect_1.1.0     
[19] mnormt_1.5-5          emmeans_1.4.1         curl_4.2             
[22] compiler_3.6.3        performance_0.4.0     sandwich_2.5-1       
[25] bayestestR_0.4.0      scales_1.1.1          mvtnorm_1.0-11       
[28] psych_1.8.12          pbivnorm_0.6.0        foreign_0.8-75       
[31] minqa_1.2.4           rio_0.5.16            pkgconfig_2.0.3      
[34] rlang_0.4.10          readxl_1.3.1          rstudioapi_0.10      
[37] generics_0.0.2        zoo_1.8-6             dcurver_0.9.1        
[40] zip_2.0.4             car_3.0-3             parameters_0.2.0     
[43] Rcpp_1.0.2            munsell_0.5.0         abind_1.4-5          
[46] lifecycle_0.2.0       multcomp_1.4-13       carData_3.0-2        
[49] MASS_7.3-51.5         plyr_1.8.4            parallel_3.6.3       
[52] ggrepel_0.8.1         sjmisc_2.8.2          forcats_0.4.0        
[55] mitml_0.3-7           crayon_1.3.4          ggeffects_0.12.0     
[58] haven_2.2.0           splines_3.6.3         sjstats_0.17.6       
[61] hms_0.5.3             knitr_1.25            pillar_1.4.2         
[64] boot_1.3-24           estimability_1.3      codetools_0.2-16     
[67] pan_1.6               GPArotation_2014.11-1 glue_1.4.2           
[70] mitools_2.4           data.table_1.12.6     modelr_0.1.5         
[73] vctrs_0.3.6           nloptr_1.2.1          cellranger_1.1.0     
[76] gtable_0.3.0          purrr_0.3.3           tidyr_1.0.0          
[79] xfun_0.10             openxlsx_4.1.0.1      xtable_1.8-4         
[82] broom_0.5.2           coda_0.19-3           tibble_2.1.3         
[85] cluster_2.1.0         TH.data_1.0-10