plot_imi_check: Visualize IMI scores for the top words in topics

plot_imi_checkR Documentation

Visualize IMI scores for the top words in topics

Description

As a diagnostic visualization, this function displays the IMI scores of the top-weighted words in a topic, together with simulated values, on a scale set by the distribution of simulated values. Extreme deviations of the actual IMI scores indicate departures from the multinomial assumption of the model.

Usage

plot_imi_check(m, k, groups = NULL, n_reps = 20, ...)

Arguments

m

mallet_model object with sampling state loaded via load_sampling_state

k

topic number (only one topic at a time)

groups

optional grouping factor with one element for each document

n_reps

number of simulations

...

passed on to top_words: use to specify number of top words and/or weighting function

Value

ggplot2 plot object

See Also

imi_topic, imi_check plot_imi_check


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