When you plot a figure in your favourite statistical software, you will most likely see the name of the variable(s) you are plotting. If your income variable is called inc, your software will call the axis with income for inc and not income. In most cases variable names are not sufficient and you should, for […]
Category: statistics
Udregn mandater til Folketinget med R
I mange meningsmålinger rapporteres partiernes opbakning ikke udelukkende med andelen af stemmer i procent, men også som mandattal. D’Hondts metode bruges som bekendt fordelingen af kredsmandater ved Folketingsvalg, der sammen med tillægsmandater sikrer en ligelig fordeling mellem stemmer og mandater ved valget. Hvis man gerne vil estimere hvor mange mandater de respektive partier står til […]
Does YouTube outages cause rape?
Here is a strange study: When You Can’t Tube… Impact of a Major YouTube Outage on Rapes. And here is the abstract for the study: On Tuesday, October 16, 2018, YouTube experienced a major and rare global service outage. Using high-frequency crime data from the United States, we document an important increase in rapes in […]
Potpourri: Statistics #70 {gt}
810. gt – a (G)rammar of (T)ables 811. Functions and Themes for gt tables 812. Beautiful Tables in R: gt and the grammar of tables 813. Embedding custom HTML in gt tables 814. A 3-way crosstab table using {gt} 815. Replicating a New York Times Table of Swedish COVID-19 deaths with gt 816. Spending on […]
How not to measure conspiracy beliefs #3
Here is a brief update to my two previous posts on the flawed study published in Psychological Medicine. To recap, the study found that almost half of the respondents in a UK sample agree that the “[c]oronavirus is a bioweapon developed by China to destroy the West”. In a new study, John Garry, Rob Ford […]