Peter Damgaard's Avatar

Peter Damgaard

@peterdamgaard.bsky.social

Assistant professor (TT). Department of Political Science and Public Management. University of Southern Denmark. Website: https://peterdamgaard.com

518 Followers  |  430 Following  |  12 Posts  |  Joined: 22.09.2023  |  2.0148

Latest posts by peterdamgaard.bsky.social on Bluesky

Preview
dplyr 1.2.0 dplyr 1.2.0 fills in some important gaps in dplyr's API: we've added a new complement to `filter()` focused on dropping rows, and we've expanded the `case_when()` family with three new recoding and re...

dplyr 1.2.0 is out now and we are SO excited!

- `filter_out()` for dropping rows

- `recode_values()`, `replace_values()`, and `replace_when()` that join `case_when()` as a complete family of recoding/replacing tools

These are huge quality of life wins for #rstats!

tidyverse.org/blog/2026/02...

04.02.2026 11:39 โ€” ๐Ÿ‘ 462    ๐Ÿ” 135    ๐Ÿ’ฌ 12    ๐Ÿ“Œ 14
Post image

Is meat consumption becoming political? @willemboterman.bsky.social & @eelcoharteveld.bsky.social examine Dutch surveys showing meat eating aligns with right-wing ideology & climate scepticism. Read OPEN ACCESS: buff.ly/HU5Mdec

@polstudiesassoc.bsky.social #polsky #polsci #FoodPolitics

26.01.2026 18:00 โ€” ๐Ÿ‘ 6    ๐Ÿ” 7    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image

Weโ€™re organizing a workshop at Aarhus University. Please share and consider submitting!

๐Ÿ—“๏ธ 13โ€“14 April 2026 | ๐Ÿ“ Deadline: Mon, 16 Feb 2026 (extended abstract) โ€” junior scholars prioritized

๐ŸŽค Keynotes: @stefwalter.bsky.social (Univ. of Zurich) & @hhuang.bsky.social (Ohio State)

15.01.2026 13:51 โ€” ๐Ÿ‘ 42    ๐Ÿ” 30    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 3
Post image Post image

Survey experiments have become a popular methodology among social scientists. Has it been effective?

In POQ, Rauf et al. study the efficacy of 100 survey experiments. Their results show that a majority of hypotheses were not supported.

Read now: doi.org/10.1093/poq/...

18.12.2025 22:33 โ€” ๐Ÿ‘ 49    ๐Ÿ” 32    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 4

Here comes another aviation analogy.

I sincerely hope that these types of tools will be used to help us do _better_ research first and foremost.

I fear instead it will be used to help us do _more_ research _faster_.

The magic of autopilot is that it helps pilots fly better, not more.

16.12.2025 20:30 โ€” ๐Ÿ‘ 4    ๐Ÿ” 2    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Will you incorporate LLMs and AI prompting into the course in the future?
No.

Why wonโ€™t you incorporate LLMs and AI prompting into the course?
These tools are useful for coding (see this for my personal take on this).

However, theyโ€™re only useful if you know what youโ€™re doing first. If you skip the learning-the-process-of-writing-code step and just copy/paste output from ChatGPT, you will not learn. You cannot learn. You cannot improve. You will not understand the code.

Will you incorporate LLMs and AI prompting into the course in the future? No. Why wonโ€™t you incorporate LLMs and AI prompting into the course? These tools are useful for coding (see this for my personal take on this). However, theyโ€™re only useful if you know what youโ€™re doing first. If you skip the learning-the-process-of-writing-code step and just copy/paste output from ChatGPT, you will not learn. You cannot learn. You cannot improve. You will not understand the code.

In that post, it warns that you cannot use it as a beginner:

โ€ฆto use Databot effectively and safely, you still need the skills of a data scientist: background and domain knowledge, data analysis expertise, and coding ability.

There is no LLM-based shortcut to those skills. You cannot LLM your way into domain knowledge, data analysis expertise, or coding ability.

The only way to gain domain knowledge, data analysis expertise, and coding ability is to struggle. To get errors. To google those errors. To look over the documentation. To copy/paste your own code and adapt it for different purposes. To explore messy datasets. To struggle to clean those datasets. To spend an hour looking for a missing comma.

This isnโ€™t a form of programming hazing, like โ€œI had to walk to school uphill both ways in the snow and now you must too.โ€ Itโ€™s the actual process of learning and growing and developing and improving. Youโ€™ve gotta struggle.

In that post, it warns that you cannot use it as a beginner: โ€ฆto use Databot effectively and safely, you still need the skills of a data scientist: background and domain knowledge, data analysis expertise, and coding ability. There is no LLM-based shortcut to those skills. You cannot LLM your way into domain knowledge, data analysis expertise, or coding ability. The only way to gain domain knowledge, data analysis expertise, and coding ability is to struggle. To get errors. To google those errors. To look over the documentation. To copy/paste your own code and adapt it for different purposes. To explore messy datasets. To struggle to clean those datasets. To spend an hour looking for a missing comma. This isnโ€™t a form of programming hazing, like โ€œI had to walk to school uphill both ways in the snow and now you must too.โ€ Itโ€™s the actual process of learning and growing and developing and improving. Youโ€™ve gotta struggle.

This Tumblr post puts it well (itโ€™s about art specifically, but it applies to coding and data analysis too):

Contrary to popular belief the biggest beginnerโ€™s roadblock to art isnโ€™t even technical skill itโ€™s frustration tolerance, especially in the age of social media. It hurts and the frustration is endless but you must build the frustration tolerance equivalent to a roachโ€™s capacity to survive a nuclear explosion. Thatโ€™s how you build on the technical skill. Throw that โ€œwonโ€™t even start because Iโ€™m afraid it wonโ€™t be perfectโ€ shit out the window. Just do it. Just start. Good luck. (The original post has disappeared, but hereโ€™s a reblog.)

Itโ€™s hard, but struggling is the only way to learn anything.

This Tumblr post puts it well (itโ€™s about art specifically, but it applies to coding and data analysis too): Contrary to popular belief the biggest beginnerโ€™s roadblock to art isnโ€™t even technical skill itโ€™s frustration tolerance, especially in the age of social media. It hurts and the frustration is endless but you must build the frustration tolerance equivalent to a roachโ€™s capacity to survive a nuclear explosion. Thatโ€™s how you build on the technical skill. Throw that โ€œwonโ€™t even start because Iโ€™m afraid it wonโ€™t be perfectโ€ shit out the window. Just do it. Just start. Good luck. (The original post has disappeared, but hereโ€™s a reblog.) Itโ€™s hard, but struggling is the only way to learn anything.

You might not enjoy code as much as Williams does (or I do), but thereโ€™s still value in maintaining codings skills as you improve and learn more. You donโ€™t want your skills to atrophy.

As I discuss here, when I do use LLMs for coding-related tasks, I purposely throw as much friction into the process as possible:

To avoid falling into over-reliance on LLM-assisted code help, I add as much friction into my workflow as possible. I only use GitHub Copilot and Claude in the browser, not through the chat sidebar in Positron or Visual Studio Code. I treat the code it generates like random answers from StackOverflow or blog posts and generally rewrite it completely. I disable the inline LLM-based auto complete in text editors. For routine tasks like generating {roxygen2} documentation scaffolding for functions, I use the {chores} package, which requires a bunch of pointing and clicking to use.

Even though I use Positron, I purposely do not use either Positron Assistant or Databot. I have them disabled.

So in the end, for pedagogical reasons, I donโ€™t foresee me incorporating LLMs into this class. Iโ€™m pedagogically opposed to it. Iโ€™m facing all sorts of external pressure to do it, but Iโ€™m resisting.

Youโ€™ve got to learn first.

You might not enjoy code as much as Williams does (or I do), but thereโ€™s still value in maintaining codings skills as you improve and learn more. You donโ€™t want your skills to atrophy. As I discuss here, when I do use LLMs for coding-related tasks, I purposely throw as much friction into the process as possible: To avoid falling into over-reliance on LLM-assisted code help, I add as much friction into my workflow as possible. I only use GitHub Copilot and Claude in the browser, not through the chat sidebar in Positron or Visual Studio Code. I treat the code it generates like random answers from StackOverflow or blog posts and generally rewrite it completely. I disable the inline LLM-based auto complete in text editors. For routine tasks like generating {roxygen2} documentation scaffolding for functions, I use the {chores} package, which requires a bunch of pointing and clicking to use. Even though I use Positron, I purposely do not use either Positron Assistant or Databot. I have them disabled. So in the end, for pedagogical reasons, I donโ€™t foresee me incorporating LLMs into this class. Iโ€™m pedagogically opposed to it. Iโ€™m facing all sorts of external pressure to do it, but Iโ€™m resisting. Youโ€™ve got to learn first.

Some closing thoughts for my students this semester on LLMs and learning #rstats datavizf25.classes.andrewheiss.com/news/2025-12...

09.12.2025 20:17 โ€” ๐Ÿ‘ 331    ๐Ÿ” 99    ๐Ÿ’ฌ 14    ๐Ÿ“Œ 31
Preview
At will? Whose will? Removing independent agency heads is part of a broader assault on a nonpartisan government

I was going to just share an excerpt of this great @donmoyn.bsky.social piece, but there are too many excerpts worth sharing. Just read the whole thing. If you care about governance, democracy, and the rule of law, these issues are crucial. open.substack.com/pub/donmoyni...

09.12.2025 12:43 โ€” ๐Ÿ‘ 314    ๐Ÿ” 109    ๐Ÿ’ฌ 5    ๐Ÿ“Œ 3
Information Equivalence in Survey Experiments | Political Analysis | Cambridge Core Information Equivalence in Survey Experiments - Volume 26 Issue 4

I consider this piece on information spillover/information equivalence a must-read for survey experimentalists. It's addresses a key limitation for many survey experiments (especially the hypothetical scenario/vignette type) www.cambridge.org/core/journal...

03.12.2025 08:17 โ€” ๐Ÿ‘ 10    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
Designing Information Provision Experiments (March 2023) - Information provision experiments allow researchers to test economic theories and answer policy-relevant questions by varying the information set available to respondents. We survey the...

Treatment can also be (new) information focusing on effects on belief updating and downstream outcomes. See also "information provision experiments" in econ lit www.aeaweb.org/articles?id=...

03.12.2025 07:59 โ€” ๐Ÿ‘ 7    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Post image

Today I published a replication outlining concerns with "Instrumentally Inclusive" by Turnbull-Dugarte and Lรณpez Ortega (2024, APSR).

I document seemingly idiosyncratic and ad hoc choices made by the authors that create a pattern of statistically significant results consistent with their theory.

28.11.2025 17:08 โ€” ๐Ÿ‘ 85    ๐Ÿ” 19    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 2
Video thumbnail

๐Ÿšจ SynthNet is out ๐Ÿšจ
Researchers propose new constructs and measures faster than anyone can track. We (@anniria.bsky.social @ruben.the100.ci) built a search engine to check what already exists and help identify redundancies; indexing 74,000 scales from ~31,500 instruments in APA PsycTests. ๐Ÿงต1/3

26.11.2025 11:42 โ€” ๐Ÿ‘ 158    ๐Ÿ” 86    ๐Ÿ’ฌ 3    ๐Ÿ“Œ 3

Selective reporting

20.11.2025 14:50 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image

I recently had a similar issue and ended up using a solution combing geom_step with a histogram as detailed by @kjhealy.co here: kieranhealy.org/blog/archive...

19.11.2025 22:18 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 1
Post image Post image Post image Post image

๐Ÿ“„ New WP version out - full overhaul!

The Politics of Evidence Selection (w/ @jesperasring.bsky.social )

Comments welcome!

๐Ÿ”— osf.io/preprints/so...

06.11.2025 15:30 โ€” ๐Ÿ‘ 52    ๐Ÿ” 18    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0

Interesting new study on the elusive connection between organizational performance and user satisfaction

04.11.2025 08:56 โ€” ๐Ÿ‘ 4    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image Post image

After a huge post-election flip in economic perceptions, I thought Democrats and Republicans might be lying to pollsters to send a partisan message โ€” but I was wrong!

New in the Journal of Experimental Political Science (open access): doi.org/10.1017/XPS....

27.10.2025 16:23 โ€” ๐Ÿ‘ 92    ๐Ÿ” 41    ๐Ÿ’ฌ 3    ๐Ÿ“Œ 8
Title: A Justification for 80% Power
Abstract:
Cohenโ€™s heuristic reason for choosing 80% power (balancing Type I and TypeII errors) conveniently arrives at approximately the same number as an approachwhere one maximizes the marginal gain in power per standard error reduction. Ihave yet to see someone point this out, and this is interesting because it providesa non-arbitrary justification for 80% power.

Title: A Justification for 80% Power Abstract: Cohenโ€™s heuristic reason for choosing 80% power (balancing Type I and TypeII errors) conveniently arrives at approximately the same number as an approachwhere one maximizes the marginal gain in power per standard error reduction. Ihave yet to see someone point this out, and this is interesting because it providesa non-arbitrary justification for 80% power.

a derivation of the result

a derivation of the result

I think this is kind of neat and I don't think anyone else has noticed it (I've looked and I can't find anyone who has) osf.io/preprints/so...

Maybe I should back off "justification" language, but it's at least a remarkable coincidence. I still think someone else *must* have noticed it...

24.10.2025 12:23 โ€” ๐Ÿ‘ 70    ๐Ÿ” 21    ๐Ÿ’ฌ 5    ๐Ÿ“Œ 0

When there is a random way to do something, there is a less random way that is better but requires more thought. In this case, regression models that make no sense don't belong in a multiverse analysis. An inferential regression without a causal justification is like an opinion without reasons.

23.10.2025 16:34 โ€” ๐Ÿ‘ 135    ๐Ÿ” 35    ๐Ÿ’ฌ 4    ๐Ÿ“Œ 3
Preview
If your random seed is 42 I will come to your office and set your computer on fire๐Ÿ”ฅ Figuratively. More likely you'll get a stern talking to.

We need to have a conversation about random seeds. Don't use 42.
blog.genesmindsmachines.com/p/if-your-ra...

22.10.2025 12:49 โ€” ๐Ÿ‘ 89    ๐Ÿ” 35    ๐Ÿ’ฌ 16    ๐Ÿ“Œ 15
Preview
Postdoctoral Fellow in Political Science (3-4 years) (288628) | University of Oslo Job title: Postdoctoral Fellow in Political Science (3-4 years) (288628), Employer: University of Oslo, Deadline: Monday, November 17, 2025

We are hiring PhDs and postdocs to work on the ERC project GETGOV, where I am the PI.

We will investigate governing elites since 1789. I am sure that it will be a lot of fun and result in great research!

Postdocs: www.jobbnorge.no/en/available...

PhDs: www.jobbnorge.no/en/available...

20.10.2025 15:27 โ€” ๐Ÿ‘ 85    ๐Ÿ” 79    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 5
Post image Post image Post image

๐Ÿ‘€ this new meta-analysis on edutainment by @bardiarahmani.bsky.social, Montano, @dylanwgroves.bsky.social, and Green

doi.org/10.1017/bpp....

377 ests in 77 exps: edutainment moves attitudes, norms, beliefs ๐Ÿ“Š
Effects persist โณ
Many reasonable theories about effect heterogeneity are not supported ๐Ÿ˜‡

14.10.2025 17:40 โ€” ๐Ÿ‘ 19    ๐Ÿ” 6    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Post image

Currently in FirstView: In โ€œBalancing Precision and Retention in Experimental Design,โ€ @gustavodiaz.org and Erin Rossiter study how experimental design choices can increase precision when estimating treatment effects. Specifically, they examine block-randomized and pre-post designs.

14.10.2025 16:35 โ€” ๐Ÿ‘ 19    ๐Ÿ” 9    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

great story, this chart RULES

13.10.2025 15:59 โ€” ๐Ÿ‘ 473    ๐Ÿ” 111    ๐Ÿ’ฌ 8    ๐Ÿ“Œ 4
Video thumbnail

osf.io/preprints/ps...
Preprint: Jan Pfรคnder and Hugo Mercier "The rational impression account of trust in science"

12.10.2025 11:03 โ€” ๐Ÿ‘ 11    ๐Ÿ” 7    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
Modernising administrations: making positive change happen 1. Teaser for Modernising administrations: making positive change happen 1.

"citizens, businesses and public administrations in the EU could save an estimated โ‚ฌ64.2 billion a year from better performing administrations?"

Glad to see first parts of our EUPACK work on the cost of underperformance in public admin being released.

reform-support.ec.europa.eu/public-admin...

11.10.2025 11:16 โ€” ๐Ÿ‘ 9    ๐Ÿ” 1    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Preview
The Making of a Ghetto: Place-Based Policies, Labeling, and Impacts on Neighborhoods and Individuals ROCKWOOL Foundation

Interesting paper on the effect of Denmark's Ghetto Plan
www.rfberlin.com/network-pape...

10.10.2025 09:59 โ€” ๐Ÿ‘ 3    ๐Ÿ” 2    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Do high workloads force bureaucrats to discriminate?

In a published paper at the @thejop.bsky.social, I challenge the dominant explanation of discrimination in public service delivery. Surprisingly, I find that bureaucrats are able to handle substantial workloads without discriminating.

16.09.2025 11:24 โ€” ๐Ÿ‘ 12    ๐Ÿ” 7    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Preview
ggplot2 4.0.0 A new major version of ggplot2 has been released on CRAN. Find out what is new here.

I am beyond excited to announce that ggplot2 4.0.0 has just landed on CRAN.

It's not every day we have a new major #ggplot2 release but it is a fitting 18 year birthday present for the package.

Get an overview of the release in this blog post and be on the lookout for more in-depth posts #rstats

11.09.2025 11:20 โ€” ๐Ÿ‘ 850    ๐Ÿ” 281    ๐Ÿ’ฌ 9    ๐Ÿ“Œ 51
Preview
Earnings expectations of โ€œFirst-in Familyโ€ university students and their role for major choice How do studentsโ€™ earnings expectations differ by being the first in their family to attend university (FiF) and how do they affect field of study choiโ€ฆ

Interesting paper by โ€ช@alisonandrew.bsky.social and โ€ช@abicadams.bsky.socialโ€ฌ on first-in family university students, very relevant for risk-aversion debate www.sciencedirect.com/science/arti...

10.07.2025 08:45 โ€” ๐Ÿ‘ 6    ๐Ÿ” 3    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Preview
Forskere skulle gรธre deres projekt ยปspiseligt for erhvervetยซ for at fรฅ adgang til data om dyrevelfรฆrd Den tidligere landbrugsstyrelse har givet ejerskab over data indsamlet af offentligt ansatte pรฅ de danske slagterier til Landbrug & Fรธdevarer. Det kan vรฆre et brud pรฅ offentlighedsloven og brud pรฅ EU-...

Landbruget har alt, alt for megen magt i Danmark. Som i: mafialignende magt.

Her er et gavelink til en helt gak historie om at lade landbruget eje offentlige kontroldata. Det svarer til at give alle data om lungekrรฆft til tobaksfabrikanterne og lade dem bestemme, hvilke forskere, der fรฅr adgang.

28.06.2025 07:19 โ€” ๐Ÿ‘ 151    ๐Ÿ” 41    ๐Ÿ’ฌ 8    ๐Ÿ“Œ 4

@peterdamgaard is following 20 prominent accounts