GithubHelp home page GithubHelp logo

soubhikbarari / political-deepfake-fx Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 1.0 6.69 MB

Replication codebase for Barari, Lucas, and Munger (2023).

R 100.00%
data-science deepfakes experiment political-communication media-effects

political-deepfake-fx's Introduction

Political Deepfakes are as Credible as Other Fake Media and (Sometimes) Real Media

Replication Code

Authors: Soubhik Barari, Christopher Lucas, and Kevin Munger

This is the replication code repository for the entitled research article (conditionally accepted at The Journal of Politics) which can be found here.

Before replicating the analyses, make sure to create a folder /figures and /tables in the root directory of the repository.

  • deepfake.RData: R object containing cleaned and anonymized results of three waves of the two survey experiments (exposure and detection) in dat, the raw but anonymized survey results in dfsurvdat, and clip-level results of the detection experiment (*fakes).

  • cps2018_crosstabs*: cross-tabs of demographic categories from the U.S. Census's 2018 Current Population Survey used for weighting.

  • 01-weight_data.R: creates population weights for observations in dat object in deepfake.RData via a simple raking algorithm on 2018 CPS data.

  • 02-prereg_analyses.R: replicates analyses specified in pre-analysis plan; generates outputs in /tables and /figures found in Appendix of article.

  • 02.1-prereg_sensitivity.R: as requested by a reviewer, conduct sensitivity tests for some pre-registered analyses as a robustness check.

  • 02.2-prereg_power.R: as requested by a reviewer, determine whether the observed sample is actually powered (post hoc) to detect the equivalence bounds specified in the paper.

  • 02.3-prereg_bounds.R: as requested by a reviewer, determine sensitivity of pre-registered analyses to differential attrition across treatment conditions by (1) re-weighting treatment conditions to parity and (2) conducting Manski extreme bounds analyses.

  • 03-paper_toplines.R: summarise pre-registered analysis results in a series of topline tables/figures; this replicates figures found in main text of article.

  • 04-supplementary_analyses.R: replicates supplementary/exploratory analyses found in Appendix of article.

political-deepfake-fx's People

Contributors

christopherlucas avatar soubhikbarari avatar

Watchers

 avatar  avatar  avatar

Forkers

lauracline

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.