Skip to content

stm

Estimation of the Structural Topic Model

v1.3.8 · Sep 3, 2025 · MIT + file LICENSE

Description

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. Methods developed in Roberts et. al. (2014) <doi:10.1111/ajps.12103> and Roberts et. al. (2016) <doi:10.1080/01621459.2016.1141684>. Vignette is Roberts et. al. (2019) <doi:10.18637/jss.v091.i02>.

Downloads

4.6K

Last 30 days

1838th

16.3K

Last 90 days

91.3K

Last year

Trend: -15.6% (30d vs prior 30d)

CRAN Check Status

4 NOTE
10 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang NOTE
r-devel-linux-x86_64-debian-gcc NOTE
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 NOTE
r-oldrel-macos-x86_64 NOTE
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (4 non-OK)
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Brandon Stewart <bms4@princeton.edu>’

Found the following (possibly) invalid file URIs:
  URI: structuraltopicmodel.com
    From: inst/doc/stmVignette.pdf
  URI: brandonstewart.org
    From: inst/doc/stmVignette.pdf
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Brandon Stewart <bms4@princeton.edu>’

Found the following (possibly) invalid file URIs:
  URI: structuraltopicmodel.com
    From: inst/doc/stmVignette.pdf
  URI: brandonstewart.org
    From: inst/doc/stmVignette.pdf
NOTE r-oldrel-macos-arm64

installed package size

installed size is  5.3Mb
  sub-directories of 1Mb or more:
    data   1.7Mb
    libs   2.5Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  5.4Mb
  sub-directories of 1Mb or more:
    data   1.7Mb
    libs   2.5Mb

Check History

NOTE 10 OK · 4 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Brandon Stewart <bms4@princeton.edu>’

Found the following (possibly) invalid file URIs:
  URI: structuraltopicmodel.com
    From: inst/doc/stmVignette.pdf
  URI: brandonstewart.org
    From: inst/doc/stmVignette.pdf
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Brandon Stewart <bms4@princeton.edu>’

Found the following (possibly) invalid file URIs:
  URI: structuraltopicmodel.com
    From: inst/doc/stmVignette.pdf
  URI: brandonstewart.org
    From: inst/doc/stmVignette.pdf
NOTE r-oldrel-macos-arm64

installed package size

installed size is  5.3Mb
  sub-directories of 1Mb or more:
    data   1.7Mb
    libs   2.5Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  5.4Mb
  sub-directories of 1Mb or more:
    data   1.7Mb
    libs   2.5Mb

Reverse Dependencies (9)

depends

Dependency Network

Dependencies Reverse dependencies Rcpp data.table glmnet lda Matrix matrixStats quadprog quanteda slam stringr stmgui SportMiner discursive sts birddog oolong sentopics tidytext topicdoc stm

Version History

new 1.3.8 Mar 10, 2026
updated 1.3.8 ← 1.3.7 diff Sep 2, 2025
updated 1.3.7 ← 1.3.6.1 diff Nov 30, 2023
updated 1.3.6.1 ← 1.3.6 diff Aug 20, 2023
updated 1.3.6 ← 1.3.5 diff Sep 17, 2020
updated 1.3.5 ← 1.3.4 diff Dec 16, 2019
updated 1.3.4 ← 1.3.3 diff Oct 29, 2019
updated 1.3.3 ← 1.3.0 diff Jan 27, 2018
updated 1.3.0 ← 1.2.2 diff Sep 8, 2017
updated 1.2.2 ← 1.2.1 diff Mar 27, 2017
updated 1.2.1 ← 1.1.3 diff Mar 6, 2017
updated 1.1.3 ← 1.1.0 diff Jan 14, 2016
updated 1.1.0 ← 1.0.8 diff Jul 27, 2015
updated 1.0.8 ← 1.0.1 diff Nov 7, 2014
updated 1.0.1 ← 1.0.0 diff Oct 3, 2014
updated 1.0.0 ← 0.6.24 diff Oct 2, 2014
updated 0.6.24 ← 0.6.16 diff Jun 29, 2014
updated 0.6.16 ← 0.6.12 diff May 29, 2014
updated 0.6.12 ← 0.6.1 diff May 13, 2014
new 0.6.1 Feb 27, 2014