In a growing body of literature, researchers leverage the occurrence of unexpected events to estimate the causal effects of events on public opinion and behaviours. Specifically, the combination of survey data collected serendipitously around the time of the unexpected event with a quasi-experimental research design makes it possible to draw inferences on the impact of […]
Category: blog
Meningsmålinger på Politologi.dk #6
I 2017 lancerede jeg et lille projekt ved navn Politologi.dk, der havde det simple formål at give et overblik over de seneste meningsmålinger forud for det næste folketingsvalg. Projektet var inspireret af lignende hjemmesider i udlandet og en irritation over journalisternes evindelige interesse i enkeltmålingernes støj. Hjemmesiden var målrettet journalister og politisk interesserede læsere, der […]
How to improve your figures #14: Comply with accessibility guidelines
A good data visualisation is an accessible data visualisation. The more accessible a visualisation is, the more likely it is that the visualisation will convey the message of interest. For that reason, before you share your data visualisation with the world, it is always good to make sure that you comply with accessibility guidelines. The […]
My most played songs in 2024
According to Spotify: Green Goblin by Alecs DeLarge The Birds Attacked My Hot Air Balloon by Pile How Many Times / Winds Above by chazaiya Hours Played by Pink Navel, Kenny Segal IGOR’S THEME by Tyler, The Creator Sweet Dreams by Johniepee, Mick Jenkins Simulation Swarm by Big Thief Baddadan (feat. IRAH, Flowdan, Trigga & […]
Argument or pipe when using left_join() in R
In a recent post on R Weekly, there was a link to a question asked by Spencer Schien on BlueSky. Specifically, he asked for people’s preference when using dplyr::left_join(). The first option is to pipe the first data frame into left_join() with the second data frame specified within the function: df3 <- df1 |> left_join(df2) […]