RDocumentation
Moon
Search all packages and functions
⚠️
There's a newer version (1.3.6) of this package.
Take me there.
Readme not available 😞
Copy Link
Copy
Link to current version
Version
Version
1.3.6
1.3.5
1.3.4
1.3.3
1.3.0
1.2.2
1.1.3
1.1.0
1.0.8
1.0.1
1.0.0
0.6.24
0.6.16
0.6.12
0.6.1
Down Chevron
Install
install.packages('stm')
Monthly Downloads
13,155
Version
1.3.3
License
MIT + file LICENSE
Maintainer
Brandon Stewart
Last Published
January 28th, 2018
Functions in stm (1.3.3)
Search functions
gadarian
Gadarian and Albertson data
js.estimate
A James-Stein Estimator Shrinking to a Uniform Distribution
plotModels
Plots semantic coherence and exclusivity for high likelihood models outputted from selectModel.
plotQuote
Plots strings
topicLasso
Plot predictions using topics
calcfrex
Calculate FREX (FRequency and EXclusivity) Words
calclift
Calculate Lift Words
exclusivity
Exclusivity
findThoughts
Find Thoughts
plot.STMpermute
Plot an STM permutation test.
plot.estimateEffect
Plot effect of covariates on topics
plotRemoved
Plot documents, words and tokens removed at various word thresholds
topicQuality
Plots semantic coherence and exclusivity for each topic.
plotTopicLoess
Plot some effects with loess
sageLabels
Displays verbose labels that describe topics and topic-covariate groups in depth.
searchK
Computes diagnostic values for models with different values of K (number of topics).
convertCorpus
Convert
stm
formatted documents to another format
estimateEffect
Estimates regressions using an STM object
findTopic
Find topics that contain user specified words.
fitNewDocuments
Fit New Documents
manyTopics
Performs model selection across separate STM's that each assume different numbers of topics.
multiSTM
Analyze Stability of Local STM Mode
readCorpus
Read in a corpus file.
readLdac
Read in a .ldac Formatted File
textProcessor
Process a vector of raw texts
thetaPosterior
Draw from Theta Posterior
toLDAvis
Wrapper to launch LDAvis topic browser.
topicCorr
Estimate topic correlation
calcscore
Calculate Score Words
checkBeta
Looks for words that load exclusively onto a topic
optimizeDocument
Optimize Document
permutationTest
Permutation test of a binary covariate.
rmvnorm
Draw from a Multivariate Normal
s
Make a B-spline Basis Function
summary.STM
Summary Function for the STM objects
summary.estimateEffect
Summary for estimateEffect
alignCorpus
Align the vocabulary of a new corpus to an old corpus
asSTMCorpus
STM Corpus Coercion
labelTopics
Label topics
make.dt
Make a
data.table
of topic proportions.
plot.searchK
Plots diagnostic values resulting from searchK
plot.topicCorr
Plot a topic correlation graph
poliblog5k
CMU 2008 Political Blog Corpus
prepDocuments
Prepare documents for analysis with
stm
selectModel
Assists the user in selecting the best STM model.
semanticCoherence
Semantic Coherence
checkResiduals
Residual dispersion test for topic number
cloud
Plot a wordcloud
make.heldout
Heldout Likelihood by Document Completion
makeDesignMatrix
Make a Design Matrix
plot.MultimodDiagnostic
Plotting Method for Multimodality Diagnostic Objects
plot.STM
Functions for plotting STM objects
stm-package
Structural Topic Model
stm
Variational EM for the Structural Topic Model
unpack.glmnet
Unpack a
glmnet
object
writeLdac
Write a .ldac file