Code and data for the anaylsis of Case study #1 and #2 - Attitudinal Space Framework
Description
This is a folder that contains all the necessary material to replicate the analysis of the manuscript entitled "The Attitudinal Space Framework: Embracing the multidimensionality of attitudinal diversity" (Arbieu, U., Albrecht, J., Böhning-Gaese, K., Lehnen, L., Schleuning, M. & Mueller, T.).
Case Study #1 is an analysis of affective polarization in the American electorate based on the ANES dataset (publicly available). "Traits_ANES_Pol2_88-08_V2.csv" contains the answers to the questionnaire (see supporting information of the manuscript for more details) and "Communities_ANES_Pol2_88-08_V2.csv" includes the distribution of respondents in the two partisan groups, twenty years apart. "US_Case_Study.R" is the R code used to conduct the analysis and produce the figures included in the manuscript and the supporting information.
Case Study #2 is an analysis of attitudes towards wolves in Germany in regions with and without wolves (data previously published in Arbieu et al., 2019, see manuscript). "DE_Wolf_orig.csv" contains the answers to the questionnaire (see supporting information of the manuscript for more details) and "Communities_DE_Wolforig.csv" includes the distribution of respondents in the two regions. "Wolf_Case_Study.R" is the R code used to conduct the analysis and produce the figures included in the manuscript and the supporting information.
Both scripts need the functions in the "multidimFD.R", which was produced by Sébastien Villéger, and downloaded from his website.