Fit LDA models to data for specified K’s

run_lda_models()

Run LDA models for specified values of hyper-parameters.

Alignment function

align_topics()

Align topics from distinct LDA models

Visualization and diagnostics functions

plot_alignment()

Visualize alignments between topics of distinct LDA models

plot_beta()

Plot Topics Heatmap

compute_number_of_paths()

Computes the number of paths

plot_number_of_paths()

Plots the number of paths

alignment-class

Alignment Class Definition

show(<alignment>)

Show Method for Alignment Class

plot(<alignment>,<missing>)

Plot Method for Alignment Class

models(<alignment>)

Extract Models underlying Alignment

weights(<alignment>)

Weights Accessor for Alignment Class

topics(<alignment>)

Extract List of Topics and their Summaries

n_models(<alignment>)

Number of Models Method for Alignment Class

n_topics(<alignment>)

Number of Topics Method for Alignment Class

Helper functions

align_graph()

Alignment between Pairs of Topics

setup_edges()

Edgelists for Default Alignments

product_weights()

Product Weights between a Model Pair

transport_weights()

Transport Weights between Model Pair

trim_betas()

Filter to words of interest

Demo data

vm_data

Vaginal microbiome data from "Replication and refinement of a vaginal microbial signature of preterm birth in two racially distinct cohorts of US women" by Calahan et al., 2017, PNAS.