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.2.2 by Brandon Stewart, 2 days 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

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

Linking to Rcpp, RcppArmadillo

Imported by stmBrowser, stmCorrViz.

Depended on by stmgui.

See at CRAN