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) <doi:10.21105/joss.00765>). 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.
| Version: | 1.0 |
| Depends: | R (≥ 3.5.0) |
| Imports: | Rcpp (≥ 1.0.9), dplyr, tidytext |
| LinkingTo: | Rcpp |
| Published: | 2026-03-23 |
| DOI: | 10.32614/CRAN.package.dhmeasures |
| Author: | Ryan Schaefer |
| Maintainer: | Steph Buongiorno <steph.buon at gmail.com> |
| BugReports: | https://github.com/stephbuon/dhmeasures/issues |
| License: | MIT + file LICENSE |
| URL: | https://github.com/stephbuon/dhmeasures |
| NeedsCompilation: | yes |
| CRAN checks: | dhmeasures results |
| Reference manual: | dhmeasures.html , dhmeasures.pdf |
| Package source: | dhmeasures_1.0.tar.gz |
| Windows binaries: | r-devel: dhmeasures_1.0.zip, r-release: dhmeasures_1.0.zip, r-oldrel: dhmeasures_1.0.zip |
| macOS binaries: | r-release (arm64): dhmeasures_1.0.tgz, r-oldrel (arm64): not available, r-release (x86_64): dhmeasures_1.0.tgz, r-oldrel (x86_64): dhmeasures_1.0.tgz |
Please use the canonical form https://CRAN.R-project.org/package=dhmeasures to link to this page.
Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.
This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.