Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chainsawriot/usenews_bayes
Computer code and intermediate data files to reproduce the analyses in the upcoming paper "Bayesian multilevel modeling and its application in comparative journalism studies"
https://github.com/chainsawriot/usenews_bayes
Last synced: 27 days ago
JSON representation
Computer code and intermediate data files to reproduce the analyses in the upcoming paper "Bayesian multilevel modeling and its application in comparative journalism studies"
- Host: GitHub
- URL: https://github.com/chainsawriot/usenews_bayes
- Owner: chainsawriot
- Created: 2021-03-23T10:26:08.000Z (over 3 years ago)
- Default Branch: postaccept
- Last Pushed: 2024-08-28T15:36:53.000Z (2 months ago)
- Last Synced: 2024-08-29T09:38:01.155Z (2 months ago)
- Language: R
- Homepage:
- Size: 85.7 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bayesian
All the information about the paper:
Chan, Chung-hong, and Rauchfleisch, Adrian. (2023) Bayesian multilevel modeling and its application in comparative journalism studies. *International Journal of Communication*
The paper was also presented at the ICA 2022 Conference, Journalism Studies Division. (Paris, France. [slides](https://chainsawriot.github.io/bayes_pres))
Additional information is also available on [OSF](https://osf.io/2h4w8/).
# Overview
| File prefix | purpose |
|--------------|-------------------------------------------------------------------------------------|
| `wjs.R` | WJS analysis |
| `01_` | Getting the [useNews data](https://osf.io/uzca3/) (Puschmann & Haim, 2020) from OSF |
| `scrape_eui` | Scraping EIU's Democracy indices |
| `02_` | Combining data sources |
| `021_` | Validating the dictionary of China coverage |
| `030_` | Preparing the data for regression analysis |
| `031_` | Article-level Bayesian analysis (take 1 week on a regular computer) |
| `032_` | Benchmark (wall clock) |
| `04_` | Outlet-level Bayesian analysis |
| `05_` | Preparing the data for 2020 analysis |
| `06_` | Report `04` but with 2020 data |There are two important R Markdown files
1. `manuscript.rmd` - as the name suggested
2. `extension.rmd` - the online appendixImportant Note: In `02_`, the file `media1k.csv` was generated. That file was then manually coded to add two more columns (`country` and `public`) to it.
# External requirements
You still need the WJS data from [this website](https://worldsofjournalism.org/data-d79/data-and-key-tables-2012-2016/). The filename is `WJS2 open V4-02 030517.sav`. Please put it in the `data` directory (see `wjs.R`).
The following R packages are required:
```r
install.packages(c("osfr", "quanteda", "here", "rio", "tibble", "tidyverse", "ROCR", "brms", "lme4", "MASS", "broom", "broom.mixed", "dplyr", "fuzzyjoin", "parameters", "rmarkdown", "papaja", "cowplot", "knitr", "ggplot2", "bayestestR", "scales", "rvest", "haven", "purrr"))
```# The draft
The draft in this repository does not contain the edits after the acceptance. Please consider the draft as a preprint. For the final version, please check IJOC.