Package: tidylo 0.2.0.9000

tidylo: Weighted Tidy Log Odds Ratio

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.

Authors:Tyler Schnoebelen [aut], Julia Silge [aut, cre, cph], Alex Hayes [aut]

tidylo_0.2.0.9000.tar.gz
tidylo_0.2.0.9000.zip(r-4.7)tidylo_0.2.0.9000.zip(r-4.6)tidylo_0.2.0.9000.zip(r-4.5)
tidylo_0.2.0.9000.tgz(r-4.6-any)tidylo_0.2.0.9000.tgz(r-4.5-any)
tidylo_0.2.0.9000.tar.gz(r-4.7-any)tidylo_0.2.0.9000.tar.gz(r-4.6-any)
tidylo_0.2.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
tidylo/json (API)
NEWS

# Install 'tidylo' in R:
install.packages('tidylo', repos = c('https://juliasilge.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/juliasilge/tidylo/issues

Pkgdown/docs site:https://juliasilge.github.io

On CRAN:

Conda:

empirical-bayeslog-odds-ratiotidy-datatidyverseweighted-log-odds

7.52 score 97 stars 225 scripts 439 downloads 1 exports 15 dependencies

Last updated from:5b8d9b0dc9. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK138
source / vignettesOK178
linux-release-x86_64OK113
macos-release-arm64OK79
macos-oldrel-arm64OK82
windows-develOK96
windows-releaseOK79
windows-oldrelOK81
wasm-releaseOK110

Exports:bind_log_odds

Dependencies:clidplyrgenericsgluelifecyclemagrittrpillarpkgconfigR6rlangtibbletidyselectutf8vctrswithr

Tidy Log Odds

Rendered fromtidylo.Rmdusingknitr::rmarkdownon May 26 2026.

Last update: 2022-03-22
Started: 2022-03-22