In our Clinical Psychology group in Leiden, we have the tradition to share new papers, accepted grant proposal, and other achievements in emails called “Paper of the Week”, “Grant of the Week”, and so forth. I just started here, so I don’t know where the tradition comes from, but it’s great to receive regular updates, especially since it’s such a large group and impossible to keep up with everyone’s work.
A few days ago, I proposed the new rubric “Failure of the Week”, and wrote the following email:
We all grew up in a research culture where successes are communicated, and we pimp our CVs, but we don’t really talk about failures. This is a pretty horrible climate for young researchers to grow up in: Everything always shines and is perfect, things go well for everybody, and if you make a mistake, you think you’re the only one ever, and that you’re a failure. So I wanted to suggest to also share things that didn’t work out, and I’ll start today with my failure of the week: Someone found a small coding error I made in a paper published in 2017, and notified me about it yesterday. I will issue a correction, it doesn’t impact on the results a lot, so it’s not the end of the world, but of course that’s not a pleasant experience.
But I think about it this way: When coding 50 or 100 papers, most people will end up making errors. And the fact that I shared my code online enabled another scientist to find the mistake, and alert me to it, so it can be rectified. Yay science! But yeah, it’s a bummer, and if anybody wants to buy me hot chocolate and provide some hugs, I’m not going to say no ;).
How to avoid making the same mistake in the future? For complex projects, what some people have started doing is get a person who is not involved in the project on board as co-author for independent code-review. I think that’s a great idea, and I will consider doing this from now on!
Of course, I’m not the first one who had this idea or talks about failure: Several people have published their “shadow CVs”1, and I blogged about Kaitlyn Werner’s open science story just last week who had a paper rejected because there was something wrong with her data — and the reviewer only found out because she submitted her data along with the paper.
In any case, we don’t talk enough about failure, so here’s mine. It’s nothing to be proud of, in fact I made a really stupid coding mistake when averaging columns in a matrix.

Correction
What happened? On August 28 2018, I received an email from Rachel Visontay, Research Assistant at the National Drug and Alcohol Research Centre, who had looked at the online supplementary codes I had shared for the paper entitled “The 52 symptoms of major depression: lack of content overlap among seven common depression scales”, published in the Journal of Affective Disorders. She alerted me to a mistake in the syntax, and I am incredibly glad I shared my code online so it could be identified by others, and can now be rectified2.
I have uploaded a detailed correction note to the Open Science Framework, along with the updated R syntax, and sent a note to the Editorial Board of JAD. The main figure some of you might know already stays the same, but some of the overlap values change slightly. In sum, the results section of the Abstract should state correctly (changes in italics):
“Results: The 7 instruments encompass 52 disparate symptoms. Mean overlap among all scales is low (0.36) moderate (0.41), mean overlap of each scale with all others ranges from 0.27–0.40 0.31-0.47, overlap among individual scales from 0.26–0.61. Symptoms feature across a mean of 3 scales, 40% of the symptoms appear in only a single scale, 12% across all instruments. Scales differ regarding their rates of idiosyncratic symptoms (0%–33%) and compound symptoms (22%–90%).”
Since journals don’t update their final papers, I was wondering whether it would make sense to also upload a corrected postprint on the open science framework. Suggestions?
PS: Jeff Rouder actually scooped me with his blog post entitled “making mistakes”: After I had written up the first draft of this blog and left it lying around for a few days for corrections, he posted his own blog post about failure. It’s definitely worth reading. Damnit Jeff.
Footnotes
-
E.g., Bradley Voytek in 2013, or Devoney Looser in 2015. ↩
-
I asked Rachel whether I could thank her here, and she said that is ok. ↩