tidylo
0.2.0Weighted Tidy Log Odds Ratio
Overview
How can we measure how the usage or frequency of some feature, such as words, differs across some group or set, such as documents? One option is to use the log odds ratio, but the log odds ratio alone does not account for sampling variability; we haven't counted every feature the same number of times so how do we know which differences are meaningful? Enter the weighted log odds, which 'tidylo' provides an implementation for, using tidy data principles. In particular, here we use the method outlined in Monroe, Colaresi, and Quinn (2008) doi:10.1093/pan/mpn018 to weight the log odds ratio by a prior. By default, the prior is estimated from the data itself, an empirical Bayes approach, but an uninformative prior is also available.
Install
Health
- OK2026-08-0413 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- NOTE2026-08-0112 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- OK2026-06-0813 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- WARNING2026-06-0712 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- References docs
- 100%
Downloads
Repository
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Repository practices
5 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/juliasilge/tidylo on 2026-08-03.
Show all practices
Dependencies
Code & Tests
People & History
2 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 0.2.0Latest
- RR 4.1.0 released · 2021-05-18
- 0.1.02020-05-25
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2020-05-25
- Total releases
- 2 / 6 yrs
- License
- MIT + file LICENSE OSI
- Download size
- 208 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet
Cite
Cite this package
Start here. This is the citation for the package itself.
citation("tidylo")CRAN DOI
https://doi.org/10.32614/CRAN.package.tidyloBibTeX, derived from DESCRIPTION
@Manual{tidylo,
title = {tidylo: Weighted Tidy Log Odds Ratio},
author = {Silge, Julia and Hayes, Alex and Schnoebelen, Tyler},
year = {2022},
note = {R package version 0.2.0},
doi = {10.32614/CRAN.package.tidylo},
url = {https://CRAN.R-project.org/package=tidylo}
}Derived from the package DESCRIPTION, not from a citation file the authors wrote. If they publish one later, prefer it.
This is the citation for the package. It is not a citation for the R Observatory.
Cite this page
Use this when the claim is about a measurement on this page.
BibTeX
@misc{robservatorytidylo,
author = {Balamuta, James Joseph},
title = {{R} {Observatory}: Metrics for {tidylo} version 0.2.0},
year = {2026},
publisher = {HJJB, LLC},
url = {https://r-observatory.thecoatlessprofessor.com/packages/tidylo},
note = {Data set. Data release v2026-08-05}
}APA
Balamuta, J. J. (2026). R Observatory: Metrics for tidylo version 0.2.0 [Data set]. HJJB, LLC. Data release v2026-08-05. https://r-observatory.thecoatlessprofessor.com/packages/tidyloRIS
TY - DATA
AU - Balamuta, James Joseph
TI - R Observatory: Metrics for tidylo version 0.2.0
PY - 2026
PB - HJJB, LLC
N1 - Data release v2026-08-05
UR - https://r-observatory.thecoatlessprofessor.com/packages/tidylo
ER - In prose
These package metrics were obtained from the R Observatory (Balamuta, 2026), data release v2026-08-05, https://r-observatory.thecoatlessprofessor.com/packages/tidylo.Bound to data release v2026-08-05, which is what makes the numbers on this page reproducible. See how to cite.