Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement the "fightin' words" method from Monroe Colaresi and Quinn (2008) #38

Open
kbenoit opened this issue May 25, 2020 · 0 comments
Assignees

Comments

@kbenoit
Copy link
Contributor

kbenoit commented May 25, 2020

From @matthewjdenny (Thanks Matt!)

I do have a function to do fightin words term ranking, and the funnel plots as well, although the code is a bit messy. I am attaching a tech report I wrote about this that includes some example funnel plots. Happy to try and collaborate to add this to quanteda.

The term ranking operates off of a contingency table (just aggregated term counts to category level) which I represent as a slam::simple_triplet_matrix objects (I always found these more intuitive to program with).

Code that does term ranking based off of informed Dirichlet model from Monroe et al. https://github.com/matthewjdenny/SpeedReader/blob/master/R/feature_selection.R

Function to make nice looking funnel plots: https://github.com/matthewjdenny/SpeedReader/blob/master/R/fightin_words_plot.R

Example usage: https://github.com/matthewjdenny/PPOL_628_Text_As_Data/blob/master/Scripts/term_category_associations.R

@kbenoit kbenoit self-assigned this May 25, 2020
@kbenoit kbenoit transferred this issue from quanteda/quanteda Nov 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant