Preparation 


Read texts 

Convert a quanteda dictionary to keywords 

Visualize keywords 

Fitting models 

keyATM main function 

keyATM with Collapsed Variational Bayes 

Weighted LDA main function 

Save a keyATM_output object 

Checking results 

Show a diagnosis plot of alpha 

Show a diagnosis plot of loglikelihood and perplexity 

Show a diagnosis plot of pi 

Show the top documents for each topic 

Show the top topics for each document 

Show the top words for each topic 

Making plots 

Show a diagnosis plot of alpha 

Show a diagnosis plot of loglikelihood and perplexity 

Show a diagnosis plot of pi 

Plot time trend 

Save a figure 

Get values used to create a figure 

Additional analyses 

Estimate documenttopic distribution by strata (for covariate models) 

Estimate subsetted topicword distribution 

Return covariates used in the iteration 

Show covariates information 

Plot documenttopic distribution by strata (for covariate models) 

Predict topic proportions for the covariate keyATM 

Builtin data 

Bills data 

Packagelevel 

Keyword Assisted Topic Models 