Main content

Home

Menu

Loading wiki pages...

View
Wiki Version:
This project examines politically polarizing speech on Twitter posted by US political leaders during the 2022 midterm election cycles. This repository contains the code necessary to replicate the analysis. The study is forthcoming at the journal Socius. Once it is published, we will update this archive with a citation. There are two files: (1) An R script named "Replication.R" that contains the majority of the data management, model building, and post-processing. (2) A Python script named "VADER_Minimal.py" that will calculate the VADER compound score that is used the analysis. Both files have dependencies. For R, we relied on the tidyverse, e1071, glmmTMB, ggeffects, stringr, tidytext, and reticulate packages. The Python program depends on the pandas and vaderSentiment libraries.
OSF does not support the use of Internet Explorer. For optimal performance, please switch to another browser.
Accept
This website relies on cookies to help provide a better user experience. By clicking Accept or continuing to use the site, you agree. For more information, see our Privacy Policy and information on cookie use.
Accept
×

Start managing your projects on the OSF today.

Free and easy to use, the Open Science Framework supports the entire research lifecycle: planning, execution, reporting, archiving, and discovery.