mi_simulate | R Documentation |
Given a topic, this function resamples its distribution over words and
documents from the posterior. These simulations are the basis for the
posterior check in mi_check
(q.v.).
mi_simulate(m, k, groups = NULL, n_reps = 20)
m |
|
k |
topic number (calculations are only done for one topic at a time) |
groups |
optional grouping factor for documents. If supplied, the IMI values will be for words over groups rather than over individual documents |
n_reps |
number of simulations |
a vector of MI scores for the simulations
mi_check
, imi_simulate
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.