R/generators.R
draw_corpus.Rd
Draw a collection of documents
draw_corpus(N, theta, phi)
Length of documents
Topic distribution for all documents, \(n \times k\) matrix
Word distribution for all topics, \(k \times v\) matrix
Document-term matrix, as a tibble, with columns doc, word, and n
doc
word
n
Other generators: journal_specific(), peak_alpha(), rdirichlet()
journal_specific()
peak_alpha()
rdirichlet()