Replication Data for Wratil, Wäckerle: "Majority Representation and Legitimacy: Survey-Experimental Evidence from the European Union"

For all questions regarding the replication material and code, please contact Jens Wäckerle at jens.waeckerle@uni-koeln.de

The following files are contained in this replication folder:

- 1_Main_Paper.R: R code for creating the figures in the main paper.

- 2_Appendix.R: R code for creating the figures and tables in the appendix.

- datasets_eu.RData: Datasets of (anonymised) survey data as received from the survey company. Recodes are done in the code. Contains a wide and a long dataset.

- eubaro_identity.RData: Eurobarometer data used for calculating the comparison to the Eurobarometer in Appendix Figure D3. Only variables needed for that plot are in the RData file, NOT the whole Eurobarometer dataset.

- eubaro_lire.RData: Eurobarometer data used for calculating the comparison to the Eurobarometer in Appendix Figure D1. Only variables needed for that plot are in the RData file, NOT the whole Eurobarometer dataset.

- eubaro_member.RData: Eurobarometer data used for calculating the comparison to the Eurobarometer in Appendix Figure D2. Only variables needed for that plot are in the RData file, NOT the whole Eurobarometer dataset.

- pretest.RData: Scales from the pretest we ran for Appendix B. All other data has been scrubbed.

If you have issues replicating the results from the paper, please check first if it is because of R and package versions. 	

Package Versions:
dotwhisker_0.6.0 
forcats_0.5.1    
stringr_1.4.0    
dplyr_1.0.7      
purrr_0.3.4      
readr_1.4.0      
tidyr_1.1.3      
tibble_3.1.2     
ggplot2_3.3.5    
tidyverse_1.3.1  
cregg_0.4.0

R-Version info:
platform       x86_64-apple-darwin17.0     
arch           x86_64                      
os             darwin17.0                  
system         x86_64, darwin17.0          
status                                     
major          4                           
minor          0.5                         
year           2021                        
month          03                          
day            31                          
svn rev        80133                       
language       R                           
version.string R version 4.0.5 (2021-03-31)
nickname       Shake and Throw 