Keyword Assisted Topic Models

Fits keyword assisted topic models (keyATM) using collapsed Gibbs samplers. The keyATM combines the latent dirichlet allocation (LDA) models with a small number of keywords selected by researchers in order to improve the interpretability and topic classification of the LDA. The keyATM can also incorporate covariates and directly model time trends. The keyATM is proposed in Eshima, Imai, and Sasaki (2024) .


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("keyATM")

0.5.5 by Shusei Eshima, 9 months ago


https://keyatm.github.io/keyATM/


Report a bug at https://github.com/keyATM/keyATM/issues


Browse source code at https://github.com/cran/keyATM


Authors: Shusei Eshima [aut, cre] (ORCID: , Tomoya Sasaki [aut] , Kosuke Imai [aut] , Chung-hong Chan [ctb] , Romain François [ctb] , Martin Feldkircher [ctb] (ORCID: , William Lowe [ctb] , Seo-young Silvia Kim [ctb] (ORCID:


Documentation:   PDF Manual  


GPL-3 license


Imports Rcpp, cli, dplyr, fastmap, future.apply, fs, ggplot2, ggrepel, magrittr, Matrix, matrixNormal, MASS, pgdraw, purrr, quanteda, rlang, stringr, tibble, tidyr, tidyselect

Suggests readtext, stats, testthat

Linking to Rcpp, RcppEigen, cli

System requirements: C++17


Suggested by oolong, poldis, sentopics.


See at CRAN