Align the vocabulary of a new corpus to an old corpus
STM Corpus Coercion
Convert stm formatted documents to another format
Looks for words that load exclusively onto a topic
Estimates regressions using an STM object
Calculate Score Words
Plot a wordcloud
Residual dispersion test for topic number
Calculate Lift Words
Heldout Likelihood by Document Completion
Find Thoughts
Calculate FREX (FRequency and EXclusivity) Words
Find topics that contain user specified words.
Fit New Documents
Gadarian and Albertson data
Label topics
Make a data.table
of topic proportions.
Exclusivity
Make a Design Matrix
A James-Stein Estimator Shrinking to a Uniform Distribution
Optimize Document
Plots diagnostic values resulting from searchK
Plot a topic correlation graph
Permutation test of a binary covariate.
Plot an STM permutation test.
Plot effect of covariates on topics
Plotting Method for Multimodality Diagnostic Objects
Functions for plotting STM objects
Performs model selection across separate STM's that each assume different
numbers of topics.
Prepare documents for analysis with stm
Draw from a Multivariate Normal
Read in a corpus file.
Read in a .ldac Formatted File
Analyze Stability of Local STM Mode
Plot documents, words and tokens removed at various word thresholds
Make a B-spline Basis Function
Plots strings
Plots semantic coherence and exclusivity for high likelihood models
outputted from selectModel.
Plot some effects with loess
CMU 2008 Political Blog Corpus
Assists the user in selecting the best STM model.
Summary Function for the STM objects
Displays verbose labels that describe topics and topic-covariate groups in
depth.
Semantic Coherence
Structural Topic Model
Variational EM for the Structural Topic Model
Wrapper to create Json mapping for LDAvis. This can be useful in indirect render
e.g. Shiny Dashboards
Wrapper to launch LDAvis topic browser.
Plots semantic coherence and exclusivity for each topic.
Estimate topic correlation
Unpack a glmnet object
Computes diagnostic values for models with different values of K (number of
topics).
Plot predictions using topics
Summary for estimateEffect
Write a .ldac file
Process a vector of raw texts
Draw from Theta Posterior