Digital History Measures

Provides statistical functions to aid in the analysis of contemporary and historical corpora. These transparent functions may be useful to anyone, and were designed with the social sciences and humanities in mind. JSD (Jensen-Shannon Divergence) is a measure of the distance between two probability distributions. The JSD and Original JSD functions expand on existing functions, by calculating the JSD for distributions of words in text groups for all pairwise groups provided (Drost (2018) ). The Log Likelihood function is inspired by the work of digital historian Jo Guldi (Guldi (2022) < https://github.com/joguldi/digital-history>). Also includes helper functions that can count word frequency in each text grouping, and remove stop words.


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("dhmeasures")

1.0 by Steph Buongiorno, 6 months ago


https://github.com/stephbuon/dhmeasures


Report a bug at https://github.com/stephbuon/dhmeasures/issues


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


Authors: Ryan Schaefer [aut] , Steph Buongiorno [aut, cre] (ORCID:


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports Rcpp, dplyr, tidytext

Linking to Rcpp


See at CRAN