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.9K

Last 30 days

1697th

4.9K

Last 90 days

4.9K

Last year

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 (14 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
OK 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

*


            
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
OK 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

*


            

Check History

NOTE 10 OK · 4 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 9, 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 9, 2026