text-analysis-org-science
text-analysis-org-science copied to clipboard
Replication materials including code and data for "A Review of Best Practice Recommendations for Text Analysis in R (and a User-Friendly App)"
Replication Materials for "A Review of Best Practice Recommendations for Text Analysis in R (and a User-Friendly App)"
Materials
| Part | Text Analysis using Topic Modeling in R |
|---|---|
| 1 | Data Cleaning & Exploration / HTML |
| 2 | Topic Modeling with no covariates / HTML |
| 3 | Topic Modeling with covariates / HTML |
Additionally, you can go to the GitHub for topicApp for instructions on how to use the Shiny app instead. We've also created a list of Topic Modeling references pdf, which is a short list of about 40 papers/tutorials to aid in future research. By no means is this list exhaustive -- please email me ([email protected]) if there are any suggestions to add to this list.
In addition to this archive, all of these materials have also been archived into a Dataverse repository. The materials are identical to the materials provided in this GitHub repository.
Setup and Preparation
R Knowledge
These materials assumes you have basic knowledge of how to :
- Set your working directory
- Install R packages via CRAN
- Handle R dataframes with
tidyversepackages likeggplot,dplyr, andreadr rmarkdownknowledgequantedaknowledge
Preparation
You will need R and RStudio installed on your laptop.
Also, please install these packages by running this code:
packages <- c("tidyverse","stm","quanteda","RColorBrewer","wordcloud")
install.packages(packages)
Downloading Materials
To download the materials, please click the "Clone or Download" button in the top right of this page. Then save the materials as a zip file onto your computer (e.g., Desktop).