Description Usage Arguments Value
Test the Latent Dirichlet Allocation (LDA) model on the data
with different number of topics (from 2 to max_topics
), select the best
one using AIC, and return the model object that is selected.
1 |
data |
a data.frame or tibble; each row is an observation (e.g. in time or space), and each column is a variable. Here, the common usage is for each column to be a species or taxon, and each row to be an observed sample. In the original specification for LDA, each row is a document, and each column is a word, with the entries being the counts of the words in each document. |
max_topics |
the maximum number of topics to try (the function will
test a number of topics from 2 to |
nseeds |
Number of seeds (replicate starts) to use for each
value of |
control |
A |
the best fit model object, from running LDATS::parLDA()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.