1895. Data Vis Dispatch: July 4, July 11, July 18, July 25 1896. Using a Data Dictionary to Recode Columns with dplyr 1897. The ave() Function in R 1898. Lessons Learned From Running R in Production 1899. Unit Testing Analytics Code 1900. A Gentle Introduction to Docker 1901. Road trip analysis! How to use and […]
Category: blog
Multivariate regression in political science
I saw a new study published in Journal of Conflict Resolution. Here is a part of the abstract I found interesting: “Offering a first quantitative test of domestic drivers of transnational repression, using multivariate regression analysis, the paper finds that as repression intensifies domestically, the likelihood of that state subsequently escalating its transnational repression also […]
Why polls sometimes differ from election results
There is not a single reason that – on its own – can explain why opinion polls differ from election results. Here is an overview of ten reasons opinion polls (sometimes) differ from election results: Margin of error. When we talk about the margin of error in an opinion poll, we accept that even state-of-the-art […]
Biting hot dogs
In a new study, published in Scientific Reports, the authors find a correlation between rates of dogs biting humans and temperature as well as UV irradiation levels. That is, as the title suggests (“The risk of being bitten by a dog is higher on hot, sunny, and smoggy days“), dogs are more likely to bite […]
Ergodicity and weighted averages of opinion polls
The more likely it is that a weighted average of opinion polls is wrong, the more we need it. If several opinion polls show the exact same numbers, a weighted average will – all else equal – be more correct than if the opinion polls differ a lot, but such an average is not really […]