Description Usage Arguments Value Examples
Run keyATM models.
1 2 3 |
model |
keyATM model: "base", "covariates", and "dynamic" |
no_keyword_topics |
the number of regular topics |
keywords |
a list of keywords |
model_settings |
a list of model specific settings |
priors |
a list of priors of parameters |
options |
a list of options |
keep |
a vector of the names of elements you want to keep in output |
keyATM_docs |
texts read via |
A keyATM_output object containing:
Number of keyword topics
Number of regular unseeded topics
Number of word types
Number of documents
Normalized topic proportions for each document
Normalized topic specific word generation probabilities
Number of tokens assigned to each topic
Number of times each word type appears
Length of each document in tokens
Words in the vocabulary
Perplexity and log-likelihood
Estimated p
Organized values stored during iterations
Outputs you specified to store.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## Not run:
# keyATM Base
out <- keyATM(
docs, model = "base", no_keyword_topics = 5, keywords = keywords_list
)
# keyATM Covariates
out <- keyATM(
docs, model = "covariates", no_keyword_topics = 5, keywords = keywords_list,
model_settings(covariates_data = cov)
)
# keyATM Dynamic
out <- keyATM(
docs, model = "dynamic", no_keyword_topics = 5, keywords = keywords_list,
model_settings(time_index = time_index_vec, num_states = 5)
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.