Main content

Home

Menu

Loading wiki pages...

View
Wiki Version:
The project includes the data (from the World Values Survey), code, and outputs for the threat and politics project. Preprint is here: https://psyarxiv.com/e9uk7/ The best way to use these files are to download all of the files into a single folder on your computer using the same folder structure as is used on the OSF. Then open "Threat.Rproj" using RStudio, as well as the script called "master.R". Running this script will produce the figures and results in the paper. There are additional files. Some of these are created by the scripts (e.g., the .png files, some of the .csv files containing output). Others are used for peripheral tasks. E.g., "add trust and constrain to country measures.R" was used to add the trust and constraint data from the WVS to the file containing the other country-level variables. The file "variance explained.R" is used to calculate the variance explained from the discussion section of the paper. Finally, the file "cross_country measures.xlsx" contains much of the same data as "measures.csv", but includes more notes about sourcing. Questions? Contact m.j.brandt@tilburguniversity.edu
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.