Code and data associated with the Responsibilism project: [Google Doc].
The code contains the following parts which readers may run to reproduce our findings.
- Train_Word2Vec.ipynb - Scrape each US states' subreddit using Convokit and train separate a separate Word2Vec model for each state.
- Construct_Dimensions.ipynb - Construct state-level collectivism index.
- Construct_Dataframe.ipynb - Link index to other state-level covariates.
- Regression.ipynb - Test convergent validity of index and use index to predict state-level happiness.
- Convokit - scrape subreddits.
- Gensim Word2vec (Rehurek & Sojka, 2011) - Train word embedding models
- roBERTa, VADER, Evaluative Lexicon (Rocklage et al., 2017) - Sentiment analysis on each state.
- Gallup Wellbeing Index - Convergent validity for sentiment scores.
- Vandello Cohen Collectivism Index (Vandello & Cohen, 1999) - Convergent validity for our collectivism index.
