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.
Package details 


Author  Tyler Schnoebelen [aut], Julia Silge [aut, cre, cph] (<https://orcid.org/000000023671836X>), Alex Hayes [aut] (<https://orcid.org/0000000249855160>) 
Maintainer  Julia Silge <julia.silge@gmail.com> 
License  MIT + file LICENSE 
Version  0.2.0 
URL  https://juliasilge.github.io/tidylo/ https://github.com/juliasilge/tidylo 
Package repository  View on CRAN 
Installation 
Install the latest version of this package by entering the following in R:

Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.