mi_simulate: Simulated MI values

mi_simulateR Documentation

Simulated MI values

Description

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.).

Usage

mi_simulate(m, k, groups = NULL, n_reps = 20)

Arguments

m

mallet_model object with sampling state loaded via load_sampling_state

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

Value

a vector of MI scores for the simulations

See Also

mi_check, imi_simulate


agoldst/dfrtopics documentation built on July 15, 2022, 4:13 p.m.