mi: Calculate Mutual information between types and documents (or...

Description Usage Arguments References

Description

Function to calculate mutual information between types and documents (MI(D,W|k)) for a given topic.

mi_group() calculates MI based on a grouping variable g, used for model checking.

See reference for details.

Usage

1
mi(state, g = "doc")

Arguments

state

A topic model state file

g

A character element as a name of a grouping variable in state (factor or integer). Default is doc.

References

Mimno, D. and Blei, D. Bayesian Checking for Topic Models


MansMeg/tidytopics documentation built on May 8, 2019, 3:52 p.m.