Skip to content

tidylo

0.2.0

Weighted Tidy Log Odds Ratio

1packages depend
9.8Kdownloads / year
97.4%test coverage
13/13checks pass

Overview

About
Maintained by Julia SilgeFirst published 2020-05-252 releasesCRAN page ↗GitHub ↗

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

CRAN checks
13OK
Slowest check: 1.8 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 0.64
97.4%
Coverage · measured lines
100%
Documentation · exports
2
Dependencies · direct
Check history
  • OK2026-08-04
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-08
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • WARNING2026-06-07
    12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 387 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
100%

Downloads

9.8K
CRAN downloads in the past year
Rank #7,716 · ~27/day · ~816/mo
Daily download trend is not available in this view yet.
33230 days
1.2K90 days
9.8K1 year
Compare downloads with other packages →
Also on95 r2u3 autocran

Repository

Repository
98Stars
4Forks
0Open issues
0Open PRs
2Releases
69Commits
4Contributors
weighted-log-oddstidyverseempirical-bayeslog-odds-ratiortidy-data
69 commits · Last activity 2022-03-22 · +1% stars, 30d

Stars over time

2025-04-25 · 962026-07-18 · 98

Repository practices

Upstream repositoryBeta

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.

Continuous integration (1)
GitHub Actions
CRAN release process (1)
cran-comments.md
Docs source (1)
README.Rmd
Lint, format, editor (1)
RStudio project
Show all practices
Coverage (1)
Codecov
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
10 external dependencies (excludes base and recommended)
Depends (0)
none
Imports (2)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect

Code & Tests

People & History

People (3)
Maintainer (1)
Author, Maintainer, Copyright holder
Authors (3)
Author, Maintainer, Copyright holder
Author
Copyright holders (1)
Author, Maintainer, Copyright holder
Package Timeline

2 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • 0.2.0Latest
    2022-03-22 · current release · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 0.1.0
    2020-05-25
  • R
    R 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.tidylo

BibTeX, 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/tidylo

RIS

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy