Estimation of the Structural Topic Model

The Structural Topic Model (STM) allows researchers to estimate topic models with document-level covariates. The package also includes tools for model selection, visualization, and estimation of topic-covariate regressions.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


1.3.0 by Brandon Stewart, 2 months ago

Report a bug at

Browse source code at

Authors: Margaret Roberts [aut, cre], Brandon Stewart [aut, cre], Dustin Tingley [aut, cre], Kenneth Benoit [ctb]

Documentation:   PDF Manual  

MIT + file LICENSE license

Imports matrixStats, splines, slam, lda, quanteda, stringr, Matrix, glmnet, Rcpp, grDevices, graphics, stats, utils, data.table, quadprog, parallel, methods

Suggests igraph, SnowballC, tm, huge, clue, wordcloud, KernSmooth, NLP, LDAvis, geometry, Rtsne, testthat, rsvd

Linking to Rcpp, RcppArmadillo

Imported by stmBrowser, stmCorrViz, themetagenomics.

Depended on by stmgui.

Suggested by tidytext.

See at CRAN