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: visualize both continuous and categorical covariate relationships with topics change the size, color, and orientation of topics and covariates to explore the visualization * click on documents within the visualization to read them
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: Roberts, Stewart and Airoldi. "Structural Topic Models" Copy available here Roberts, Stewart, Tingley, and Airoldi. "The Structural Topic Model and Applied Social Science." Advances in Neural Information Processing Systems Workshop on Topic Models: Computation, Application, and Evaluation. 2013. Copy available here Roberts, Stewart, Tingley, Lucas, Leder-Luis, Gadarian, Albertson, and Rand. "Structural topic models for open-ended survey responses." American Journal of Political Science. Forthcoming. Copy available here Lucas, Nielsen, Roberts, Stewart, Storer, and Tingley. "Computer assisted text analysis for comparative politics." Copy available here * Reich, Tingley, Leder-Luis, Roberts and Stewart. "Computer-Assisted Reading and Discovery for Student Generated Text in Massive Open Online Courses" Copy available here
Assuming you already have R installed (if not see http://www.r-project.org/), to install the CRAN version, simply use:
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
Then you can load the package and use the function
See the documentation for example analyses. The main function to estimate the model is
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.