documents: the documents to be modeled (see stm for format).
vocab: the vocabulary item
N: number of docs to be partially held out
proportion: proportion of docs to be held out.
seed: the seed, set for replicability
Details
These functions are used to create and evaluate heldout likelihood using the document completion method. The basic idea is to hold out some fraction of the words in a set of documents, train the model and use the document-level latent variables to evaluate the probability of the heldout portion. See the example for the basic workflow.