Skip to content

stm

1.3.8

Estimation of the Structural Topic Model

13packages depend
97.9Kdownloads / year
24.6%test coverage
11/13checks pass

Overview

About
Maintained by Brandon StewartFirst published 2014-02-2820 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
2NOTE11OK
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
Slowest check: 13.1 min · r-devel-windows-x86_64
Code health
Yes
Tests · ratio 0.01
24.6%
Coverage · measured lines
100%
Documentation · exports
17
Dependencies · direct
Check history
  • NOTE2026-06-29
    11 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-28
    11 OK · 1 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-06-27
    11 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-20
    11 OK · 1 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-06-09
    11 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 8 earlier snapshots
  • WARNING2026-06-08
    11 OK · 1 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-05-13
    11 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-05-12
    11 OK · 1 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-04-22
    10 OK · 4 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-18
    9 OK · 4 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-04-16
    10 OK · 4 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-09
    9 OK · 3 NOTE · 0 WARNING · 2 ERROR · 0 FAILURE
  • NOTE2026-03-10
    10 OK · 4 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesYes · dynamicpkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
49%
Documented parameters
98%
Return-value docs
52%
References docs
33%

Downloads

97.9K
CRAN downloads in the past year
Rank #1,802 · ~268/day · ~8.2K/mo
Daily download trend is not available in this view yet.
3.9K30 days
13.2K90 days
97.9K1 year
Compare downloads with other packages →
Also on661 r2u16 autocran4.4K conda_forge101 c2d4u

Repository

Repository
421Stars
101Forks
113Open issues
4Open PRs
2Releases
415Commits
28Contributors
415 commits · Last activity 2026-01-14 · +0.5% stars, 30d

Stars over time

2026-07-14 · 4192026-08-10 · 421

Repository practices

Upstream repositoryBeta

1 development-tooling and community-health practice detected across 1 family in the upstream repository

Checks run against github.com/bstewart/stm on 2026-08-09.

Continuous integration (1)
Travis CI
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
25 external dependencies (excludes base and recommended)
Depends (2)
R >= 3.5.0methods
Imports (16)
Rcppdata.tableglmnetgrDevicesgraphicsldaMatrixmatrixStatsparallelquadprogquantedaslamsplinesstatsstringrutils
LinkingTo (2)
Enhances (0)
none

Code & Tests

Datasets

People & History

People (4)
Maintainer (1)
Author, Maintainer · added in 1.2.1
Authors (3)
Author, Maintainer · added in 1.2.1
Author · added in 1.2.1
Contributors (1)
Contributor · added in 1.2.1
Listed in earlier versions (2)
no longer listed · 0.6.1 to 1.1.3
no longer listed · 0.6.1 to 1.1.3
Package Timeline

20 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.3.8Latest
    2025-09-03 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 1.3.7
    2023-12-01 · diff ↗
  • 1.3.6.1
    2023-08-21 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 1.3.6
    2020-09-18 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 1.3.5
    2019-12-17 · diff ↗
  • 1.3.4
    2019-10-30 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • 1.3.3
    2018-01-28 · diff ↗
Show 18 earlier events
  • 1.3.0
    2017-09-09 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 1.2.2
    2017-03-28 · diff ↗
  • 1.2.1
    2017-03-07 · diff ↗
  • R
    R 3.3.0 released · 2016-05-03
  • 1.1.3
    2016-01-15 · diff ↗
  • 1.1.0
    2015-07-28 · diff ↗
  • R
    R 3.2.0 released · 2015-04-16
  • 1.0.8
    2014-11-08 · diff ↗
  • 1.0.1
    2014-10-04 · diff ↗
  • 1.0.0
    2014-10-03 · diff ↗
  • 0.6.24
    2014-06-30 · diff ↗
  • 0.6.16
    2014-05-30 · diff ↗
  • 0.6.12
    2014-05-14 · diff ↗
  • R
    R 3.1.0 released · 2014-04-10
  • 3.0.3
    2014-02-28 · diff ↗
  • 0.6.1
    2014-02-28
  • R
    R 3.0.0 released · 2013-04-03

Package metadata

First published
2014-02-28
Total releases
20 / 12 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.5.0
Bundled data
869 KB / 3 files
Download size
1.8 MB
Installed size
not tracked yet
With dependencies
not tracked yet
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("stm")
Stewart, B., Benoit, K., Roberts, M., & Tingley, D. (2025). stm: Estimation of the Structural Topic Model (Version 1.3.8) [Computer software]. https://doi.org/10.32614/CRAN.package.stm

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for stm version 1.3.8 [Data set]. HJJB, LLC. Data release v2026-08-15. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-15, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy