Other packages > Find by keyword >

stm  

Estimation of the Structural Topic Model
View on CRAN: Click here


Download and install stm package within the R console
Install from CRAN:
install.packages("stm")

Install from Github:
library("remotes")
install_github("cran/stm")

Install by package version:
library("remotes")
install_version("stm", "1.3.8")



Attach the package and use:
library("stm")
Maintained by
Brandon Stewart
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2014-02-28
Latest Update: 2025-09-03
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>.
How to cite:
Brandon Stewart (2014). stm: Estimation of the Structural Topic Model. R package version 1.3.8, https://cran.r-project.org/web/packages/stm. Accessed 29 Oct. 2026.
Previous versions and publish date:
(2026-07-09 07:09), 0.6.1 (2014-02-28 17:55), 0.6.12 (2014-05-14 17:18), 0.6.16 (2014-05-30 17:33), 0.6.24 (2014-06-30 18:55), 1.0.0 (2014-10-03 00:52), 1.0.1 (2014-10-04 18:02), 1.0.8 (2014-11-08 01:57), 1.1.0 (2015-07-28 00:25), 1.1.3 (2016-01-15 00:09), 1.2.1 (2017-03-07 01:27), 1.2.2 (2017-03-28 23:10), 1.3.0 (2017-09-09 23:53), 1.3.3 (2018-01-28 22:13), 1.3.4 (2019-10-30 10:00), 1.3.5 (2019-12-17 13:50), 1.3.6.1 (2023-08-21 09:00), 1.3.6 (2020-09-18 15:50), 1.3.7 (2023-12-01 23:30)
Other packages that cited stm R package
View stm citation profile
Other R packages that stm depends, imports, suggests or enhances
Complete documentation for stm
Functions, R codes and Examples using the stm R package
Some associated functions: alignCorpus . asSTMCorpus . calcfrex . calclift . calcscore . checkBeta . checkResiduals . cloud . convertCorpus . estimateEffect . exclusivity . findThoughts . findTopic . fitNewDocuments . gadarian . js.estimate . labelTopics . make.dt . make.heldout . makeDesignMatrix . manyTopics . multiSTM . optimizeDocument . permutationTest . plot.MultimodDiagnostic . plot.STM . plot.STMpermute . plot.estimateEffect . plot.searchK . plot.topicCorr . plotModels . plotQuote . plotRemoved . plotTopicLoess . poliblog5k . prepDocuments . readCorpus . readLdac . rmvnorm . s . sageLabels . searchK . selectModel . semanticCoherence . stm-package . stm . summary.STM . summary.estimateEffect . textProcessor . thetaPosterior . toLDAvis . toLDAvisJson . topicCorr . topicLasso . topicQuality . unpack.glmnet . writeLdac . 
Some associated R codes: RcppExports.R . STMconvergence.R . STMestep.R . STMfunctions.R . STMinit.R . STMlncpp.R . STMmnreg.R . STMmu.R . STMoptbeta.R . STMreport.R . STMsigma.R . alignCorpus.R . asSTMCorpus.R . checkBeta.R . cloud.R . convertCorpus.R . estimateEffect.R . exclusivity.R . findThoughts.R . findTopic.R . fitNewDocuments.R . heldout.R . jeffreyskappa.R . labelTopics.R . makeDesignMatrix.R . manyTopics.R . multiSTM.R . permute.R . plot.STM.R . plot.estimateEffect.R . plot.searchK.R . plotModels.R . plotQuote.R . plotRemoved.R . plotTopicLoess.R . plottingutilfns.R . prepDocuments.R . produce_cmatrix.R . readCorpus.R . residuals.R . s.R . sageLabels.R . searchK.R . selectModel.R . semanticCoherence.R . simBetas.R . spectral.R . stm-package.R . stm.R . stm.control.R . summary.STM.R . tau.R . textProcessor.R . thetaPosterior.R . toLDAvis.R . topicCorr.R . topicLasso.R . topicQuality.R . writeLdac.R . zzz.R .  Full stm package functions and examples
Downloads during the last 30 days

Today's Hot Picks in Authors and Packages

binovisualfields  
Depth-Dependent Binocular Visual Fields Simulation
Simulation and visualization depth-dependent integrated visual fields. Visual fields are measured mo ...
Download / Learn more Package Citations See dependency  
personalized2part  
Two-Part Estimation of Treatment Rules for Semi-Continuous Data
Implements the methodology of Huling, Smith, and Chen (2020) , w ...
Download / Learn more Package Citations See dependency  
fastRG  
Sample Generalized Random Dot Product Graphs in Linear Time
Samples generalized random product graphs, a generalization of a broad class of network models. Giv ...
Download / Learn more Package Citations See dependency  
GEVcdn  
GEV Conditional Density Estimation Network
Implements a flexible nonlinear modelling framework for nonstationary generalized extreme value anal ...
Download / Learn more Package Citations See dependency  
nextGenShinyApps  
Craft Exceptional 'R Shiny' Applications and Dashboards with Novel Responsive Tools
Nove responsive tools for designing and developing 'Shiny' dashboards and applications. The scripts ...
Download / Learn more Package Citations See dependency  

29,218

R Packages

247,686

Dependencies

77,281

Author Associations

29,219

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA