Description Usage Arguments Value Examples
Generates a topic model with K topics using Latent Dirichlet allocation (LDA, with the lda package) For use with JSTOR's Data for Research datasets (http://dfr.jstor.org/).
1 | JSTOR_lda(unpack1grams, nouns, K, alpha = 50/K)
|
unpack1grams |
object returned by the function JSTOR_unpack1grams. |
nouns |
the object returned by the function JSTOR_dtmtonouns. |
K |
the number of topics that the model should contain |
alpha |
The scalar value of the Dirichlet hyperparameter for topic proportions. Higher values lead to more uniform distributions of topics over documents. Default is 50/K |
Returns a data frame with documents as rows, topics as columns and posterior probabilities as cell values.
1 | ## lda1 <- JSTOR_lda(unpack1grams, nouns, K = 150)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.