Skip to content

kennyjoseph/covid_localnews_public

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This repository provides replication materials for the paper: (final paper name)

Step 1: Data Downloading

For replication purposes, you will need to download the following large files from Google Drive

  • Download data/url_to_flag_updatedtoFeb24_obitfilter.csv from here
  • Download data/theta_Feb27update_withdomtopic.csv from here

Replicating Paper Results

Results for the main text of the paper can then be replicated using the R files figures_1_2_3.R and figures_4_5.R. If you would also like to replicate the supplement, you can do so with the file plots_for_supplement.R.

Data Sources

A reminder that the paper uses data from the following sources:

Replicating the Topic Model

Given the cleaned and preprocessed CSV data file (download it here), the STM model and Theta output from the model can be replicated by using code_for_stm/run_stm.R.

Given the Theta output from the STM model, in some of our analysis, we map each article to one topic by finding the dominate topic in the topic distribution per article. This code can be found here: code_for_stm/add_domtopic_to_theta.py.

If one is interested in how we preprocessed the data and decided in the parameter k, the files code_for_stm/preprocess_text_for_topicmodel.py and code_for_stm/findK.py provide those details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published