stm: Estimation of the Structural Topic Model

Share:

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.

Author
Margaret E. Roberts, Brandon M. Stewart and Dustin Tingley
Date of publication
2016-01-15 00:09:18
Maintainer
Brandon Stewart <bms4@princeton.edu>
License
MIT + file LICENSE
Version
1.1.3
URLs

View on CRAN

Man pages

checkResiduals
Residual dispersion test for topic number
cloud
Plot a wordcloud
convertCorpus
Convert 'stm' formatted documents to another format
estimateEffect
Estimates regressions using an STM object
findThoughts
Find Thoughts
findTopic
Find topics that contain user specified words.
gadarian
Gadarian and Albertson data
heldout
Heldout Likelihood by Document Completion
labelTopics
Label topics
manyTopics
Performs model selection across separate STM's that each...
multiSTM
Analyze Stability of Local STM Mode
permutationTest
Permutation test of a binary covariate.
plot.estimateEffect
Plot effect of covariates on topics
plotModels
Plots semantic coherence and exclusivity for high likelihood...
plot.MultimodDiagnostic
Plotting Method for Multimodality Diagnostic Objects
plotQuote
Plots strings
plotRemoved
Plot documents, words and tokens removed at various word...
plot.searchK
Plots diagnostic values resulting from searchK
plot.STM
Plot summary of an STM object
plot.STMpermute
Plot an STM permutation test.
plot.topicCorr
Plot a topic correlation graph
plotTopicLoess
Plot some effects with loess
poliblog5k
CMU 2008 Political Blog Corpus
prepDocuments
Prepare documents for analysis with 'stm'
readCorpus
Read in a corpus file.
s
Make a B-spline Basis Function
sageLabels
Displays verbose labels that describe topics and...
searchK
Computes diagnostic values for models with different values...
selectModel
Assists the user in selecting the best STM model.
stm
Variational EM for the Structural Topic Model
stm-package
Structural Topic Model
summary.STM
Summary Function for the STM objects
textProcessor
Process a vector of raw texts
thetaPosterior
Draw from Theta Posterior
toLDAvis
Wrapper to launch LDAvis topic browser.
topicCorr
Estimate topic correlation
topicLasso
Plot predictions using topics
topicQuality
Plots semantic coherence and exclusivity for each topic.
writeLdac
Write a .ldac file

Files in this package

stm
stm/inst
stm/inst/CITATION
stm/inst/NEWS.Rd
stm/inst/doc
stm/inst/doc/stmVignette.Rnw
stm/inst/doc/stmVignette.R
stm/inst/doc/stmVignette.pdf
stm/src
stm/src/Makevars
stm/src/STMCfuns.cpp
stm/src/Makevars.win
stm/src/RcppExports.cpp
stm/NAMESPACE
stm/data
stm/data/gadarianFit.RData
stm/data/poliblog5k.RData
stm/data/datalist
stm/data/gadarian.RData
stm/R
stm/R/plottingutilfns.R
stm/R/STMlncpp.R
stm/R/labelTopics.R
stm/R/plot.STM.R
stm/R/stm.R
stm/R/checkBeta.R
stm/R/spectral.R
stm/R/STMestep.R
stm/R/multiSTM.R
stm/R/findTopic.R
stm/R/checkFactors.R
stm/R/readCorpus.R
stm/R/selectModel.R
stm/R/simBetas.R
stm/R/STMreport.R
stm/R/toLDAvis.R
stm/R/STMoptbeta.R
stm/R/parseFormulas.R
stm/R/topicLasso.R
stm/R/plotRemoved.R
stm/R/plot.searchK.R
stm/R/topicCorr.R
stm/R/semanticCoherence.R
stm/R/exclusivity.R
stm/R/RcppExports.R
stm/R/topicQuality.R
stm/R/STMsigma.R
stm/R/plotModels.R
stm/R/plotQuote.R
stm/R/sageLabels.R
stm/R/findThoughts.R
stm/R/textProcessor.R
stm/R/thetaPosterior.R
stm/R/STMfunctions.R
stm/R/STMmnreg.R
stm/R/summary.STM.R
stm/R/manyTopics.R
stm/R/dmr.R
stm/R/plot.estimateEffect.R
stm/R/STMconvergence.R
stm/R/produce_cmatrix.R
stm/R/prepDocuments.R
stm/R/tau.R
stm/R/searchK.R
stm/R/estimateEffect.R
stm/R/s.R
stm/R/plotTopicLoess.R
stm/R/STMmu.R
stm/R/writeLdac.R
stm/R/stm.control.R
stm/R/heldout.R
stm/R/permute.R
stm/R/STMinit.R
stm/R/zzz.R
stm/R/cloud.R
stm/R/convertCorpus.R
stm/R/jeffreyskappa.R
stm/R/residuals.R
stm/vignettes
stm/vignettes/stmVignette.Rnw
stm/vignettes/apsr.bst
stm/vignettes/multimod.png
stm/vignettes/natbib.bst
stm/vignettes/Flowchart.pdf
stm/vignettes/jsslogo.jpg
stm/vignettes/extracted.bib
stm/vignettes/STMdiagram.pdf
stm/MD5
stm/build
stm/build/vignette.rds
stm/DESCRIPTION
stm/man
stm/man/checkBeta.rd
stm/man/poliblog5k.Rd
stm/man/convertCorpus.Rd
stm/man/searchK.Rd
stm/man/plotQuote.Rd
stm/man/selectModel.Rd
stm/man/topicCorr.Rd
stm/man/plot.STMpermute.Rd
stm/man/heldout.Rd
stm/man/summary.STM.Rd
stm/man/plot.topicCorr.Rd
stm/man/textProcessor.Rd
stm/man/permutationTest.Rd
stm/man/plot.estimateEffect.Rd
stm/man/multiSTM.Rd
stm/man/cloud.Rd
stm/man/findThoughts.Rd
stm/man/plot.STM.Rd
stm/man/topicLasso.Rd
stm/man/thetaPosterior.Rd
stm/man/sageLabels.Rd
stm/man/plotTopicLoess.Rd
stm/man/gadarian.Rd
stm/man/topicQuality.Rd
stm/man/plot.MultimodDiagnostic.Rd
stm/man/prepDocuments.Rd
stm/man/stm.Rd
stm/man/plot.searchK.Rd
stm/man/plotModels.Rd
stm/man/findTopic.Rd
stm/man/s.Rd
stm/man/stm-package.Rd
stm/man/labelTopics.Rd
stm/man/plotRemoved.Rd
stm/man/checkResiduals.Rd
stm/man/manyTopics.Rd
stm/man/estimateEffect.Rd
stm/man/readCorpus.Rd
stm/man/toLDAvis.Rd
stm/man/writeLdac.Rd
stm/LICENSE