Fit weighted LDA models.
texts read via keyATM_read().
Weighted LDA model: base, covariates, and dynamic.
the number of regular topics.
a list of model specific settings (details are in the online documentation).
a list of priors of parameters.
a list of options (details are in the documentation of keyATM()).
a vector of the names of elements you want to keep in output.
A keyATM_output object containing:
number of terms (number of unique words)
number of documents
the name of the model
topic proportions for each document (document-topic distribution)
topic specific word generation probabilities (topic-word distribution)
number of tokens assigned to each topic
number of times each word type appears
length of each document in tokens
words in the vocabulary (a vector of unique words)
priors
options
NULL for LDA models
perplexity and log-likelihood
estimated pi for the last iteration (NULL for LDA models)
values stored during iterations
number of topics
outputs you specified to store in keep option
information about the fitting
if (FALSE) { # \dontrun{
  library(keyATM)
  library(quanteda)
  data(keyATM_data_bills)
  bills_dfm <- keyATM_data_bills$doc_dfm  # quanteda dfm object
  keyATM_docs <- keyATM_read(bills_dfm)
  # Weighted LDA
  out <- weightedLDA(docs = keyATM_docs, model = "base",
                     number_of_topics = 5)
  # Visit our website for full examples: https://keyatm.github.io/keyATM/
} # }