Keyword Assisted Topic Models


[Up] [Top]

Documentation for package ‘keyATM’ version 0.5.2

Help Pages

keyATM-package Keyword Assisted Topic Models
by_strata_DocTopic Estimate document-topic distribution by strata (for covariate models)
by_strata_TopicWord Estimate subsetted topic-word distribution
covariates_get Return covariates used in the iteration
covariates_info Show covariates information
keyATM keyATM main function
keyATMvb keyATM with Collapsed Variational Bayes
keyATM_data_bills Bills data
keyATM_read Read texts
multiPGreg Run multinomial regression with Polya-Gamma augmentation
plot.strata_doctopic Plot document-topic distribution by strata (for covariate models)
plot_alpha Show a diagnosis plot of alpha
plot_modelfit Show a diagnosis plot of log-likelihood and perplexity
plot_pi Show a diagnosis plot of pi
plot_timetrend Plot time trend
plot_topicprop Show the expected proportion of the corpus belonging to each topic
predict.keyATM_output Predict topic proportions for the covariate keyATM
read_keywords Convert a quanteda dictionary to keywords
save_fig Save a figure
semantic_coherence Semantic Coherence: Mimno et al. (2011)
top_docs Show the top documents for each topic
top_topics Show the top topics for each document
top_words Show the top words for each topic
values_fig Get values used to create a figure
visualize_keywords Visualize keywords
weightedLDA Weighted LDA main function