Website: www.structuraltopicmodel.com
Authors: Michael Freeman, Jason Chuang, Molly Roberts, Brandon Stewart and Dustin Tingley
Please email all comments/questions to molly.e.roberts [at] gmail.com
This repository will host the development version of the STM Browser. It is also available on CRAN. It provides an interactive environment for exploring STM model results in a web browser, optimized for Chrome. The visualization pairs a configurable scatter plot with the full text of a selected document. The interactive scatterplot allows specification of the x-position, y-position, color, and radius of each document based on metdata.
The package currently includes functionality to:
Click here for an example of the browser using the PoliBlogs dataset.
A few screenshots from this example:
Political blogs write about Sarah Palin topic over the course of 2008:
Comparison of conservative and libaral blogs on the financial crisis, in 2008:
Papers on the Structural Topic Model:
Assuming you already have R installed (if not see http://www.r-project.org/), to install the CRAN version, simply use:
install.packages("stmBrowser")
You can install the most recent development version using the devtools package. First you have to install devtools using the following code. Note that you only have to do this once
if(!require(devtools)) install.packages("devtools")
Then you can load the package and use the function install_github
library(devtools)
install_github("mroberts/stmBrowser",dependencies=TRUE)
See the documentation for example analyses. The main function to estimate the model is stmBrowser()
.