-
Notifications
You must be signed in to change notification settings - Fork 1
/
03-peerj_bump.Rmd
401 lines (285 loc) · 66 KB
/
03-peerj_bump.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
# Distributions of $p$-values between .01-.05 in psychology: What is going on?
```{r echo = FALSE}
library(magrittr)
suppressPackageStartupMessages(library(kableExtra))
```
A set of $p$-values can be informative of the underlying effects that are investigated, but can also be indicative of potential research biases or questionable research practices (QRPs). In the absence of QRPs, the distribution of significant $p$-values can be expected to have a certain shape. Under the null hypothesis all $p$-values are equally probable (i.e., follow a uniform distribution). If there is truly an effect, smaller $p$-values are more likely than larger $p$-values (i.e., the distribution decreases monotonically in the $p$-value). Consequently, because some hypotheses are false and some are true, the distribution of observed $p$-values arises from a mixture of uniform and right-skewed distributions and should also decrease monotonically.^[One exception to this rule is when the alternative hypothesis is wrongly specified, that is, if the true effect size is negative whereas the alternative hypothesis states that the true effect is positive. In this case the distribution of the $p$- value is left-skewed and monotonically increasing.] QRPs may have various effects on the $p$-value distribution. Figure \@ref(fig:bump-fig1) shows the $p$-value distribution of statistical tests both with data peeking (solid lines) and without data peeking. Data peeking (also known as optional stopping) refers to conducting intermediate significance testing during data collection [@doi:10.2307/2343787]. Data peeking greatly affects the $p$-value distribution in all panels, which can be seen from comparing the 'true' and 'data-peeked' $p$-value distributions. Panel A, which is obtained after data peeking of studies with standardized effect size $d=0$, shows a 'bump' in the distribution. A bump corresponds to that part of the $p$-value distribution that makes it no longer monotonically decreasing. Panel B also shows a bump for data peeking of studies with $d=0.2$. However, Panel C shows no bump but merely monotonic excess, i.e. an increase in the frequency of $p$-values below .05 in the absence of a bump. Consequently, data peeking may either lead to monotonic excess or a bump in the distribution of $p$-values. There are other known QRPs in the analysis of data [@doi:10.1177/0956797611430953], but these have different effects on the $p$-value distribution and do not necessarily lead to a bump, as shown in Figure \@ref(fig:bump-fig1).
```{r bump-fig1, fig.cap="Distributions of 20 million $p$-values each, when Cohen's standardized effect size $d=0$ (bump; Panel A), $d=.2$ (bump; Panel B), and $d=.5$ (monotonic excess; Panel C), given data peeking (solid) or no data peeking (dashed). Simulations were run for two-sample $t$-tests with $n_k=24$. For data peeking, a maximum of three rounds of additional sampling occurred if the result was nonsignificant, with each round adding $1/3$ of the original sample size.", fig.align="center", echo=FALSE, fig.align = 'center', out.width = '100%'}
if (!knitr::is_html_output()) {
knitr::include_graphics('assets/figures/bump-fig1.pdf.svg.png', auto_pdf = TRUE)
} else {
knitr::include_graphics('assets/figures/bump-fig1.pdf.svg.png', auto_pdf = TRUE)
}
```
In this chapter we attempt to answer two questions: (1) Does a bump or monotonic excess of $p$-values below .05 exist in psychology? and (2) Did evidence for a bump increase over time in psychology? We chose to focus on psychology because of the availability of an extensive database on statistical results in psychology [used in @doi:10.3758/s13428-015-0664-2] and because discussions on research practices are particularly salient in this discipline [@doi:10.1177/1745691612465253;@doi:10.1177/0956797611430953;@doi:10.1177/0956797611417632;@doi:10.1177/1745691612463078;@doi:10.1002/per.1919].
### How QRPs relate to distributions of _p_-values
QRPs are defined as practices that are detrimental to the research process [@doi:10.17226/1864], with a recent focus on those which "increase the likelihood of finding support for a false hypothesis" [p.524; @doi:10.1177/0956797611430953]. Several QRPs related to significance testing are known to affect $p$-values of statistical tests and consequently the decisions based on these tests. Specifically, particular QRPs may yield results that are just significant and can create a bump of $p$-values, such as ad hoc exclusion of outliers [@doi:10.1037/met0000014], repeatedly sampling new participants and checking the results [i.e., data peeking; @doi:10.2307/2343787], including various combinations of covariates until a significant result is reached, operationalizing a measure in different ways until significance is reached [@doi:10.1177/0956797611417632], or selective reporting of $p$-values [@doi:10.1177/1948550615598377]. These QRPs have been used by many researchers at least once in their career. For instance, data peeking and the ad hoc exclusion of outliers were admitted by 63% and 38% of psychological researchers, respectively [@doi:10.1177/0956797611430953]. On the other hand, other QRPs mainly yield very small and (clearly) significant $p$-values, such as analyzing multiple conditions or correlated variables and selecting only the smallest $p$-value out of this set of analyses [@doi:10.1177/1745691616650874;@doi:10.1037/xge0000086] and do not lead to a bump. To summarize, different QRPs may differently affect the distribution of statistically significant $p$-values.
However, there are at least two problems with using $p$-value distributions to examine the prevalence of QRPs. First, as we previously argued, not all QRPs lead to a bump of $p$-values just below .05. Hence, examining the distribution of $p$-values just below .05 will not inform us on the prevalence of QRPs that do not aim to obtain just significant results but yield mainly small and clearly significant $p$-values [@doi:10.1177/1745691616650874;@doi:10.1037/xge0000086]. Second, the QRPs yielding just significant results do not necessarily result in a non-monotonic $p$-value distribution, that is, a distribution with a _bump_. For instance, consider Figure \@ref(fig:bump-fig1) that shows the result of simulations done for data peeking, which is known to result in mainly just significant $p$-values [@doi:10.2307/2343787;@doi:10.1080/17470218.2014.982664;@doi:10.3758/bf03194105]. Figure \@ref(fig:bump-fig1) illustrates that data peeking may result in non-monotonic excess (i.e., bump; panel A and B), but can also cause _monotonic excess_ (panel C), even if all researchers use data peeking. Specifically, if all underlying effects are genuinely and substantially different from zero (panel C), data peeking will generally not lead to a bump below .05. In the present paper, we therefore examine the peculiar prevalence of $p$-values just below .05 by both investigating the presence of a bump or monotonic excess in distributions of statistically significant results.
### Previous findings
@doi:10.1080/17470218.2012.711335 found a bump of $p$-values just below .05 in three main psychology journals (i.e., _Journal of Personality and Social Psychology_, JPSP; _Journal of Experimental Psychology: General_, JEPG; _Psychological Science_, PS), which, as we saw, could be explained by research biases due to QRPs. The observation of a bump was one of several signals of a crisis of confidence in research findings in psychological science [@doi:10.1177/1745691612465253;@doi:10.1037/a0039405]. @doi:10.1080/17470218.2013.863371 later corroborated this bump of $p$-values for JPSP and JEPG, and observed that it was larger in 2005 than in 1965. Considering that research biases can lead to overemphasis on statistical significance, this result suggested that the state of psychology may have even deteriorated over the years. Additional corroboration in samples of published articles from various fields was provided by @doi:10.1371/journal.pbio.1002106, who documented the bump of $p$-values below .05 in 1,048,575 articles across 16 disciplines including psychology. @doi:10.1186/s13104-015-1691-x found similar biased reporting of $p$-values in medical abstracts, but noted the variety of potential causes (e.g., publication bias, fraud, selective reporting).
At the same time, other studies failed to find a bump of $p$-values below .05 [@doi:10.1093/biostatistics/kxt007;@doi:10.1371/journal.pone.0127872;@doi:10.1080/19312458.2015.1096333]. Reanalysis of original data by @doi:10.1080/17470218.2014.982664 and ourselves indicated that the results may have been confounded by publication bias [@doi:10.1080/17470218.2012.711335] and by tendencies to round $p$-values [@doi:10.1371/journal.pbio.1002106]. Publication bias refers to the fact that the probability of getting published is higher for statistically significant results than for statistically nonsignificant results [@doi:10.1177/1532673x09350979;@doi:10.1126/science.1255484]. Publication bias only changes the $p$-value distribution above .05 and cannot cause a bump. @doi:10.1371/journal.pone.0127872 analyzed a sample of around 5,000 psychology articles and found no bump in $p$-values that were _recalculated_ on the basis of reported test statistics and degrees of freedom [cf. @doi:10.3758/s13428-011-0089-5]. However, he did observe a bump for _reported_ $p$-values. As such, this highlights an important difference between reported $p$-values and recalculated $p$-values, and stresses the need to distinguish both types of results when studying signs of questionable research practices.
### Extensions of previous studies
In answering our research questions, we extend previous studies on four dimensions. First, we eliminate the distortive effects of publication bias on the $p$-value distribution by inspecting only statistically significant results. Second, we use a large data set on $p$-values from entire articles instead of only $p$-values from abstracts [as in @doi:10.1093/biostatistics/kxt007;@doi:10.7717/peerj.733]. Third, we distinguish between reported and recalculated $p$-value distributions for the same set of test results and show that this distinction affects answers to the two questions because of common mismatches [@doi:10.3758/s13428-011-0089-5]. Fourth, we fit analytic models to $p$-value distributions to investigate the existence of monotonic excess as shown in the panel C of Figure \@ref(fig:bump-fig1), whereas previous research only investigated whether there was non-monotonic excess (i.e., a bump).
Publication bias distorts the $p$-value distribution, but distortions caused by this bias should not be confounded with distortions caused by other QRPs. Publication bias refers to the selective publication of disproportionate amounts of statistically significant outcomes [@doi:10.1177/1532673x09350979;@doi:10.1126/science.1255484]. Publication bias contributes to a higher frequency of $p$-values just below .05 relative to the frequency of $p$-values just above .05, but only does so by decreasing the frequency of $p$-values _larger_ than .05. @doi:10.1080/17470218.2012.711335 and @doi:10.7717/peerj.733 indeed found this relatively higher frequency, which is more readily explained by publication bias. QRPs that lead to a bump affect only the distribution of $p$-values smaller than .05 [@doi:10.1080/17470218.2014.982664]. We focus only on the distribution of significant $p$-values, because this distribution is directly affected by QRPs that cause a bump or monotonic excess. Publication bias only indirectly affects this distribution, through QRPs to obtain statistically significant results, but not directly because publication bias lowers the frequency of observed nonsignificant $p$-values.
The second extension is the use of more extensive data for psychology than previously used to inspect QRPs that cause a bump or monotonic excess, improving our ability to examine the prevalence of QRPs. @doi:10.1080/17470218.2012.711335 and @doi:10.1080/17470218.2013.863371 manually collected $p$-values from a relatively small set of full research articles (i.e., 3,627 and 3,701), whereas @doi:10.1093/biostatistics/kxt007 and @doi:10.7717/peerj.733 used automated extraction of $p$-values from only the abstracts of research papers. However, $p$-values from abstracts are not representative for the population of $p$-values from the entire paper [@doi:10.1093/biostatistics/kxt032;@doi:10.1093/biostatistics/kxt036], even though some have argued against this [@doi:10.1007/s11192-010-0233-5]. Our large scale inspection of full-text articles is similar to papers by @doi:10.1371/journal.pbio.1002106 and @doi:10.1371/journal.pone.0127872.
Third, we examine the prevalence of QRPs that cause a bump or monotonic excess by investigating both reported and the accompanying recalculated $p$-values. Not all previous studies distinguished results from reported $p$-values and recalculated $p$-values. This distinction is relevant, because reported $p$-values are subject to reporting bias such as rounding errors, particularly relevant around the .05 threshold. Such reporting biases result in inaccurate $p$-value distributions. For example, there is evidence that reporting errors that affect statistical significance (i.e., gross inconsistencies) occur in approximately 10-15\% of papers in psychology [@doi:10.3758/s13428-011-0089-5;@doi:10.1186/1471-2288-4-13;@doi:10.3758/s13428-015-0664-2;@doi:10.1371/journal.pone.0114876]. The advantage of analyzing recalculated $p$-values is that they contain more decimals than typically reported and that they correct reporting errors. Some previous studies analyzed reported $p$-values [@doi:10.7717/peerj.733;@doi:10.1093/biostatistics/kxt007;@doi:10.1371/journal.pbio.1002106], whereas others looked at recalculated $p$-values [@doi:10.1080/17470218.2012.711335] or a mix of reported and recalculated [@doi:10.1080/17470218.2013.863371]. Only @doi:10.1371/journal.pone.0127872 used both reported and recalculated $p$-values for a subset of the data (approximately 27,000 of the 135,000 were recalculated), and found that the peculiar prevalence below .05 disappeared when the recalculated data were used. Hence, this distinction between reported and recalculated $p$-values allows us to distinguish between peculiarities due to reporting errors and peculiarities due to QRPs such as data peeking.
Fourth, we examine the prevalence of $p$-values just below .05 by taking into account various models to test and explain characteristics of $p$-value distributions. We applied tests and fitted models to $p$-values below .05, in two ways. We first applied the non-parametric Caliper test [@doi:10.1177/1532673x09350979] comparing frequencies of $p$-values in an interval just below .05 to the frequency in the adjacent lower interval; a higher frequency in the interval closest to .05 is evidence for QRPs that seek to obtain just significant results. The Caliper test has also been applied to examine publication bias, by comparing just significant to just nonsignificant $p$-values [@doi:10.1371/journal.pone.0105825], and to detect QRPs [@doi:10.1371/journal.pbio.1002106]. However, the Caliper test can only detect a bump but not monotonic excess, as illustrated by the distributions of $p$-values in Figure \@ref(fig:bump-fig1). Therefore, we also attempted to model the distribution of significant $p$-values in order to investigate for all forms of excess (i.e., both a bump and monotonic excess), and illustrate the results and difficulties of this approach.
In short, this chapter studies the distribution of significant $p$-values in four ways. First, we verified whether a bump is present in _reported_ $p$-values just below .05 with the Caliper test. Second, to examine how reporting errors might influence $p$-value distributions around .05, we analyzed only the recalculated $p$-values corresponding to those reported as .05. Third, we used the Caliper test to examine if a bump effect is present in _recalculated_ $p$-values and whether evidence for a bump changed over time. Finally, we modeled the distribution of significant recalculated $p$-values in an attempt to also detect a monotonic excess of $p$-values below .05.
## Data and methods
### Data
We investigated the $p$-value distribution of research papers in eight high impact psychology journals [also used in @doi:10.3758/s13428-015-0664-2]. These eight journals were selected due to their high-impact across different subfields in psychology and their availability within the Tilburg University subscriptions. This selection also encompasses the journals covered by @doi:10.1080/17470218.2012.711335 and @doi:10.1080/17470218.2013.863371. A summary of the downloaded articles is included in Table \@ref(tab:journals).
For these journals, our sample included articles published from 1985 through 2013 that were available in HTML format. For the PLOS journals, HTML versions of articles were downloaded automatically with the `rplos` package [v0.3.8; @Chamberlain2015-tg]. This package allows an `R` user to search the PLOS database as one would search for an article on the website.^[We note there are minor differences in the number of search results from the PLOS webpage and the `rplos` package for equal searches. This is due to differences in the default search database for the webpage and the package. For technical details on this issue, see [https://github.com/ropensci/rplos/issues/75](https://github.com/ropensci/rplos/issues/75)] We used this package to retrieve search results that include the subject 'psychology' for (part of) an article. For all other journals, HTML versions of articles were downloaded manually by the first author.
```{r journals, echo=FALSE}
if (knitr::is_html_output()) {
fil <- 'assets/tables/ch4-tab1-html.csv'
} else {
fil <- 'assets/tables/ch4-tab1-latex.csv'
}
tab1 <- read.csv(fil, stringsAsFactors = FALSE)
names(tab1)[4] <- "Articles downloaded"
names(tab1)[5] <- "Articles with extracted results"
names(tab1)[6] <- "APA results extracted"
if (!knitr::is_html_output()) {
knitr::kable(tab1, booktabs = TRUE, format = 'latex', caption = "Articles downloaded, articles with extracted results in American Psychological Association (APA) style, and number of extracted APA test results per journal.", escape = FALSE) %>%
landscape() %>%
kableExtra::kable_styling(latex_options = c('striped', 'scale_down'), position = 'center')
} else {
knitr::kable(tab1, booktabs = TRUE, caption = "Articles downloaded, articles with extracted results in American Psychological Association (APA) style, and number of extracted APA test results per journal.", escape = FALSE) %>%
kableExtra::kable_styling(position = 'center',
bootstrap_options = c("striped", "hover", "condensed", "responsive", full_width = F))
}
```
APA test results were extracted from the downloaded articles with the R package `statcheck` [v1.0.1; @statcheck]. The only requirement for this package to operate is a supply of HTML (or PDF) files of the articles that are to be scanned and `statcheck` extracts all test results reported according to the standards of the American Psychological Association [APA; @isbn:9781433805615]. This format is defined as test results reported in the following order: the test statistic and degrees of freedom (encapsulated in parentheses) followed by the $p$-value (e.g., $t(85)=2.86,p=.005$). This style has been prescribed by the APA since at least 1983 [@American_Psychological_Association1983-yf;@American_Psychological_Association2001-uw], with the only relevant revision being the precision of the reported $p$-value, changing from two decimal places to three decimal places in the sixth edition from 2010. `statcheck` extracts $t$, $F$, $\chi^{2}$, $Z$ and $r$ results reported in APA style. Additional details on the validity of the `statcheck` package can be found in @doi:10.3758/s13428-015-0664-2.
From the 30,710 downloaded papers, `statcheck` extracted 258,105 test results. We removed 55 results, because these were impossible test results (i.e., $F(0,55)=...$ or $r>1$). The final data set thus included 258,050 test results. The extracted test results can have four different formats, where test results or $p$-values are reported either exactly (e.g., $p=.042$) or inexactly (e.g., $p<.05$). Table \@ref(tab:2x2) shows the composition of the data set, when split across these (in)exactly reported $p$-values and (in)exactly reported test results.
```{r 2x2, echo=FALSE}
if (knitr::is_html_output()) {
fil <- 'assets/tables/ch4-tab2-html.csv'
} else {
fil <- 'assets/tables/ch4-tab2-latex.csv'
}
tab2 <- read.csv(fil, stringsAsFactors = FALSE)
names(tab2)[1] <- ""
names(tab2)[2] <- "Exact test statistic"
names(tab2)[3] <- "Inexact test statistic"
names(tab2)[4] <- ""
if (!knitr::is_html_output()) {
knitr::kable(tab2, booktabs = TRUE, escape = FALSE, format = 'latex',
caption = "Composition of extracted APA test results with respect to exact and inexact reporting of $p$-values or test statistics.") %>%
kableExtra::kable_styling(latex_options = c('striped', 'hold_position', 'scale_down'), position = 'center')
} else {
knitr::kable(tab2, booktabs = TRUE, escape = FALSE,
caption = "Composition of extracted APA test results with respect to exact and inexact reporting of $p$-values or test statistics.") %>%
kableExtra::kable_styling(position = 'center',
bootstrap_options = c("striped", "hover", "condensed", "responsive", full_width = F))
}
```
From this data set, we selected six subsets throughout our analyses to investigate our research questions regarding a bump below .05. We analyzed (i) all reported $p$-values ($N=258,050$) for a bump in their distribution just below .05. Subsequently we analyzed (ii) only exactly reported $p$-values ($N=69,050$). It is possible that reporting or rounding errors have occurred among the reported $p$-values. To investigate the degree to which this happens at $p=.05$, we analyzed (iii) exactly reported test statistics that are accompanied by an exactly reported $p$-value of .05 (i.e., $p=.05$). This subset contains 2,470 results. To attenuate the effect of rounding errors and other factors influencing the reporting of $p$-values [e.g., @doi:10.1111/j.1420-9101.2006.01291.x], we also investigated the recalculated $p$-value distribution with (iv) $p$-values that were accompanied by exactly reported test statistics ($N=256,393$). To investigate whether evidence for a bump differs for inexactly and exactly reported $p$-values, (v) 68,776 exactly reported test statistics with exactly reported $p$-values were analyzed. Finally, we used (vi) all recalculated $p$-values in 0-.05 for $t$, $r$, and $F(df_1=1)$ values to model the effect size distribution underlying these $p$-values to investigate evidence of both a bump and monotonic excess.
## Methods
We used the Caliper test and two new measures to examine if the observed $p$-value distribution shows evidence for a bump or monotonic excess below .05. We applied the two measures to the observed $p$-value distribution and we examined their performance to detect a bump or monotonic excess using a simulation study on data peeking. Data peeking was chosen because it is one of the most frequently used and well-known QRPs. Below, we explain the Caliper test, how the $p$-value distributions are modeled with the two new measures, and describe the design of the simulation study in more detail.
### Caliper test
In order to test for a bump of $p$-values just below .05, we applied the Caliper test [@doi:10.1177/1532673x09350979;@doi:10.1371/journal.pone.0105825]. This proportion test compares the frequencies of $p$-values in two intervals, such as the intervals .04-.045 and .045-.05. Let $Pr$ denote the proportion of $p$-values of the interval .045-.05. Then, independent of the population effect sizes underlying the $p$-values, $Pr$ should not be higher than .5 in any situation because the $p$-value distribution should be monotone decreasing. Hence $Pr>.5$ signifies a bump of $p$-values just below .05.
We carried out one-tailed binomial proportion tests, with $H_{0}: Pr\leq.5$ and $H_{1}: Pr>.5$. For example, if 40 and 60 $p$-values are observed in the intervals .04-.045 and .045-.05, respectively, then $Pr=.6$ and the binomial test results in $p$-value = .0284, suggesting evidence for a bump below .05. We applied the Caliper test to the reported $p$-values (subsets one through three as described in the previous section) and recalculated $p$-values (subsets four and five), both for the entire data set and each of the eight psychology journals.
The Caliper test requires specifying the width of the intervals that are to be compared. For reported $p$-values, we selected the intervals (.03875-.04] and [.04875-.05) because there is a strong preference to report $p$-values to the second decimal in research papers [see also @doi:10.7717/peerj.3068]. For recalculated $p$-values we used the same interval width as used by @doi:10.1080/17470218.2012.711335;@doi:10.1080/17470218.2013.863371, which is .00125, corresponding to a comparison of intervals (.0475-.04875] and [.04875-.05). Note that rounding is not a problem for recalculated $p$-values. Considering that some journals might show small frequencies of $p$-values in these intervals, we also carried out Caliper tests with interval widths of .0025, .005, and .01. Note that, on the one hand, increasing interval width increases the statistical power of the Caliper test because more $p$-values are included in the test, but on the other hand also decreases power because $Pr$ is negatively related to interval width whenever $p$-values correspond to tests of non-zero population effects. In other words, a bump just below .05 will tend more and more towards a monotonically decreasing distribution as the binwidth increases.
To verify if evidence for a bump of $p$-values increased over time, we fitted a linear trend to proportion $Pr$ of the Caliper test with binwidths .00125, .0025, .005, and .01. We computed these proportions for each year separately, for both the total data set and per journal. Time was centered at the start of data collection, which was 1985 except for PLOS (2000), PS (2006; due to 0 $p$-values in the considered interval for preceding years), and FP (2010). The value .5 was subtracted from all $Pr$ values, such that the intercept of the trend corresponds to the bump of $p$-values at the start of data collection, where 0 means no bump. A positive linear trend signifies an increase in the bump of $p$-values below .05 over time.
### Measures based on $p$-value distributions
Figure \@ref(fig:bump-fig1) demonstrates that the effect of data peeking on the shape of the $p$-value distribution (i.e., bump or just monotonic excess) depends on the true effect size. The distribution after data peeking does not monotonically decrease for $d=0$ or $d=.2$ (panel A and B), whereas it does decrease monotonically for $d=0.5$ (panel C). Consequently, the Caliper test will signal a bump of $p$-values for $d=0$ (i.e., it will detect a bump), but not for $d=0.5$.
We examined how we may be able to detect both a bump and monotonic excess of $p$-values below .05. Figure \@ref(fig:bump-fig1) indicates that, for $p$-values close to zero (e.g., $\leq.00125$) the $p$-value distributions with data peeking (solid lines) closely match the $p$-value distributions without data peeking (dashed lines). In other words, data-peeking in studies with initially nonsignificant $p$-values rarely results in tiny significant $p$-values, but more often in $p$-values larger than .00125. The basic idea of this analysis is therefore to estimate the 'true' effect size distribution using only these tiny $p$-values (i.e., $\leq.00125$), assuming that none or a very small proportion of these $p$-values were affected by data-peeking. We note that we selected the .00125 cut-off point rather arbitrarily. Other, more liberal (e.g., .01, in case of a smaller set of statistically significant $p$-values) or even more conservative cut-off points (e.g., .0001, in case of a very large data set as ours) can be selected.
We examined the performance of two measures to detect a bump or monotonic excess of $p$-values below .05. The first method compares the effect sizes estimated on $p$-values smaller than .00125 to effect sizes estimated using all $p$-values smaller than .05. The idea of this first method is that increasing the frequency of just-significant $p$-values *decreases* the effect size estimate. Indeed, the more right-skewed the $p$-value distribution, the higher the effect size estimate when keeping constant studies' sample sizes [@doi:10.1037/a0033242;@doi:10.1037/met0000025]. According to the first method, there is evidence suggestive of data peeking (or other QRPs leading to a bump of $p$-values just below .05) if the effect size estimate is considerably lower when based on all $p$-values than when based on only $p$-values $\leq.00125$.
The second method yields a measure of excess of $p$-values just below .05, for either a bump or monotonic excess, by comparing the observed frequency of $p$-values in the interval .00125-.05 to the predicted frequency of $p$-values in that interval. This prediction is based on the effect size estimated using the $p$-values smaller than .00125. If the ratio of observed over expected $p$-values is larger than 1, referred to as statistic $D$, then this could indicate data peeking. Statistic $D$ is calculated as
\begin{equation}
D=\frac{p^o_{.00125}}{1-p^o_{.00125}}\times\frac{1-p^e_{.00125}}{p^e_{.00125}}
(\#eq:bump-d)
\end{equation}
with $p^o_{.00125}$ and $p^e_{.00125}$ representing the proportion of $p$-values lower than .00125 observed and expected, respectively. Note that $D$ is an odds ratio.
For both measures the expected $p$-value distribution needs to be derived and compared to the observed $p$-value distribtuion. The expected $p$-value distribution was derived by minimizing the $\chi^2$-statistic as a function of mean effect $\delta$ and standard deviation $\tau$, where it was assumed that the true effect size (Fisher-transformed correlation, $\rho_F$) is normally distributed with parameters $\delta$ and $\tau$. We only considered nonnegative values of $\delta$ because we only fitted our model to observed positive effects. See the Supplemental File for the technical details.
#### Design of simulation study
To examine the potential of the two measures to detect data peeking, their performance was examined on simulated data with and without data peeking. We used a two-group between-subjects design with 24 participants per group ($n_k=24$), and compared their means using a $t$-test. The performance of both measures was examined as a function of true effect size $\delta$ (0; 0.2; 0.5; 0.8) and heterogeneity $\tau$ (0; 0.15). In the data peeking conditions, data were simulated as follows: means and variances per group were simulated and a two-sample $t$-test was conducted. If this $t$-test was statistically significant (i.e., $p\leq.05$), the $p$-value was stored, otherwise the data peeking procedure was started. In this data peeking procedure, one-third of the original sample size was added to the data before conducting another two-sample $t$-test. This data peeking procedure was repeated until a statistically significant result was obtained or three rounds of additive sampling had taken place (see [osf.io/x5z6u](https://osf.io/x5z6u) for functions used in the simulation). The simulations were stopped if 1,000,000 studies with a $p$-value below .1 were obtained for each combination of $\delta$ and $\tau$.
## Results and discussion
In this section, we report the results of our analyses in the following order for the subsets: all reported $p$-values (258,050 results), exactly reported $p$-values (69,050 results), $p$-values erroneously reported as equal to .05 (2,470 results), all recalculated $p$-values based on exactly reported test statistics (256,393 results), recalculated $p$-values based on exactly reported test statistics and exactly reported $p$-values (68,776 results), and the modeling of $p$-value distributions based on recalculated $p$-values 0-.00125 and 0-.05 (54,561 results and 127,509, respectively). These analyses apply the Caliper test to investigate evidence of a possible bump below .05. Subsequently, the results of the two measures are presented based on all recalculated $p$-values.
### Reported $p$-values
Figure \@ref(fig:bump-fig2) shows the distribution for all reported $p$-values (i.e., 258,050; white bars) and exactly reported $p$-values (i.e., 69,050; blue bars). Results of the Caliper test indicate (i) there is a bump just below .05 when considering all reported $p$-values in bins .03875-.04 versus .04875-.05, $N=45,667, Pr=0.905,p<.001$ and (ii) there is less evidence for a bump when considering only exactly reported $p$-values, $N=4,900,Pr=0.547,p<.001$. The difference in bumps between these two subsets can be explained by the amount of $p$-values that are reported as $<.05$, which is 86\% of all $p$-values reported as exactly equal to .05 and 14\% of all reported $p$-values.
```{r bump-fig2, fig.cap='Distributions of all reported $p$-values (white) and exactly reported $p$-values (blue) across eight psychology journals. Binwidth = .00125.', fig.align="center", echo=FALSE, fig.pos='h'}
knitr::include_graphics('assets/figures/bump-fig2.png')
```
To investigate whether this observed bump below .05 across exactly reported $p$-values originates from one or multiple journals, we performed the Caliper test on the exactly reported $p$-values per journal. Table \@ref(tab:report) shows the results for these tests. The results indicate that there is sufficient and reliable evidence for a bump below .05 (i.e., $Pr>.5$) for the journals DP and JPSP and sufficient evidence, but debatable reliability for JAP, where the results depend on the binwidth. However, the other five journals show no evidence for a bump below .05 in exactly reported $p$-values at all. In other words, the bump below .05 in exactly reported $p$-values is mainly driven by the journals DP, JAP, and JPSP.
The Caliper test results for reported $p$-values indicate two things: (i) including inexactly reported $p$-values has a large impact on the $p$-value distribution and (ii) a bump below .05 is also found when only considering exactly reported $p$-values. Because inexact reporting of $p$-values causes excess at certain points of the $p$-value [e.g., the significance threshold .05; @doi:10.1111/j.1420-9101.2006.01291.x], we recommend only inspecting exactly reported $p$-values when examining $p$-value distributions.
```{r report, echo=FALSE}
if (knitr::is_html_output()) {
fil <- 'assets/tables/ch4-tab3-html.csv'
tab3 <- read.csv(fil, stringsAsFactors = FALSE)
names(tab3) <- c('', rep(c('$x$','$N$','$Pr$','$p$'), 4))
knitr::kable(tab3, booktabs = TRUE, escape = TRUE,
caption = "Caliper test for exactly reported $p$-values per journal for different binwidths.") %>%
kableExtra::add_header_above(c("Binwidth" = 1, "0.00125" = 4, "0.0025" = 4, "0.005" = 4, "0.01" = 4)) %>%
kableExtra::scroll_box(width = "100%") %>%
kableExtra::kable_styling(position = 'center',
bootstrap_options = c("striped", "hover", "condensed", "responsive", full_width = F))
} else {
fil <- 'assets/tables/ch4-tab3-latex.csv'
tab3 <- read.csv(fil, stringsAsFactors = FALSE)
names(tab3) <- c('', rep(c('$x$','$N$','$Pr$','$p$'), 4))
knitr::kable(tab3, booktabs = TRUE, escape = FALSE, format = 'latex',
caption = "Caliper test for exactly reported $p$-values per journal for different binwidths.") %>%
kableExtra::add_header_above(c("Binwidth" = 1, "0.00125" = 4, "0.0025" = 4, "0.005" = 4, "0.01" = 4)) %>%
landscape() %>%
kableExtra::kable_styling(latex_options = c('striped', 'scale_down'), position = 'center')
}
```
Considering only exactly reported $p$-values, there is sufficient evidence for a bump below .05 in the journals DP, JAP, and JPSP, but not in the remaining five journals (i.e., FP, JCCP, JEPG, PLOS, PS). A tentative explanation of the bump of $p$-values just below .05 for DP, JAP, and JPSP may be that QRPs that aim to obtain barely significant results are more frequent in the fields of these journals. However, another explanation may be that scientists in these fields are more prone to exactly report $p$-values just below .05 (e.g., to emphasize they are really smaller than .05) than $p$-values considerably smaller than .05.
### Recalculated $p$-value distributions
#### Recalculated when reported $p=.05$
Results for reported $p$-values remain inconclusive with regard to the distribution of $p$-values, due to potential rounding or errors [@doi:10.3758/s13428-011-0089-5;@doi:10.3758/s13428-015-0664-2;@doi:10.1371/journal.pone.0114876]. Rounding and errors could result in an overrepresentation of $p$-values $\leq.05$. To investigate the plausibility of this notion, we inspected recalculated $p$-values when $p=.05$ was reported (i.e., 2,470 values). Figure \@ref(fig:bump-fig3) indicates that $p$-values that were reported as .05 show remarkable spread when recalculated, which indicates that the reported $p$-value might frequently be rounded or incorrect, assuming that the reported test statistics are correct. More specifically, 67.45% of $p$-values reported as .05 were larger than .05 when recalculated and 32.55% were smaller than .05. This percentage does not greatly vary across journals (range 58.8%-73.4% compared to 67.45%). Taking into account rounding possibilities (i.e., widening the range of correct $p$-values to .045-.055), these percentages become 13.81% and 7.85%, respectively, meaning incorrect reporting of at least 21.66% of the $p$-values that were reported as .05. In comparison, $p$-values reported as $p=.04, p=.03,$ or $p=.02$ show smaller proportions of downward rounding when compared to $p=.05$ (i.e., 53.33%, 54.32%, 50.38%, respectively compared to 67.45%). When taking into account potential rounding errors in the initial reporting of $p$-values, the discrepancy remains but becomes smaller (i.e., 11.74%, 9.57%, 8.03%, respectively compared to 13.81%). These results provide direct evidence for the QRP "incorrect rounding of $p$-value" [@doi:10.1177/0956797611430953], which contributes to a bump or monotonic excess just below .05.
```{r bump-fig3, echo = FALSE, fig.cap="Distribution of recalculated $p$-values where the $p$-value is reported as $p=.05$. 9.7 percent of the results fall outside the range of the plot, with 3.6 percent at the left tail and 6.1 percent at the right tail. Binwidth = .00125", fig.align="center", fig.pos = 'h'}
knitr::include_graphics('assets/figures/bump-fig3.png')
```
The discrepancy between recalculated $p$-values and $p$-values reported as equal to .05 highlights the importance of using recalculated $p$-values when underlying effect distributions are estimated as in $p$-uniform and $p$-curve [@doi:10.1037/met0000025;@doi:10.1037/a0033242]. When interested in inspecting the $p$-value distribution, reported $p$-values can substantially distort the $p$-value distribution, such that results become biased if we rely solely on the reported $p$-value. Such a discrepancy indicates potential rounding of $p$-values, erroneous reporting of $p$-values, or strategic reporting of $p$-values. The $p$-value distortions can be (partially) corrected for by recalculating $p$-values based on reported test statistics. Additionally, potential distortions to the distribution at the third decimal place due to the rounding of $p$-values to the second decimal [@doi:10.7717/peerj.3068] is also solved by recalculating $p$-values. We continue with recalculated $p$-values in our following analyses.
#### Recalculated $p$-values
Figure \@ref(fig:bump-fig4) shows the distribution of all recalculated $p$-values (i.e., set of 256,393 results) and of recalculated $p$-values whenever the reported $p$-value is exact (i.e., set of 68,776 results). The recalculated $p$-value distribution is markedly smoother than the reported $p$-value distribution (see Figure \@ref(fig:bump-fig2)) due to the absence of rounded $p$-values.
```{r bump-fig4, echo = FALSE, fig.cap = 'Recalculated $p$-values for exactly reported test statistics (white bars), and recalculated $p$-values for exactly reported test statistics where $p$-values are also exactly reported (blue bars). Binwidth = .00125', fig.align="center", fig.pos = 'h', out.width = '60%'}
knitr::include_graphics('assets/figures/bump-fig4.png')
```
After inspecting all recalculated $p$-values, we did not observe a bump just below .05, $N=2,808,Pr=.5,p=0.508$. When we analyzed the recalculated $p$-values per journal (Table \@ref(tab:recalculated1)), there is no evidence for a bump below .05 in any of the journals. Additionally, we inspected all recalculated $p$-values that resulted from exactly reported $p$-values. For this subset we did observe a bump below .05, $N=809,Pr=0.564,p=0.000165$ (blue histogram in Figure \@ref(fig:bump-fig4)) for the smallest binwidth (i.e., .00125), but this effect was not robust across larger binwidths, as shown in Table \@ref(tab:recalculated2). This table also specifies the results for a bump below .05 per journal, with sufficient evidence of a bump only in JPSP. This finding, however, was only observed for binwidths .00125 and .0025, not for larger binwidths. Considering the results from the recalculated $p$-values, there is sparse evidence for the presence of a bump below .05, opposed to previously claimed widespread evidence [@doi:10.1080/17470218.2012.711335;@doi:10.1080/17470218.2013.863371;@doi:10.1371/journal.pbio.1002106]. Moreover, interpretation of the bump for JPSP is not straightforward; it may also be that authors of JPSP are more prone to report exact test statistics if the $p$-value is just below .05 than whenever $p$-values are considerably smaller than .05.
```{r recalculated1, echo=FALSE}
if (knitr::is_html_output()) {
fil <- 'assets/tables/ch4-tab4-html.csv'
tab4 <- read.csv(fil, stringsAsFactors = FALSE)
names(tab4) <- c('', rep(c('$x$','$N$','$Pr$','$p$'), 4))
knitr::kable(tab4, booktabs = TRUE, escape = FALSE,
caption = "Caliper test for exactly recalculated $p$-values per journal for different binwidths.") %>%
kableExtra::add_header_above(c("Binwidth" = 1, "0.00125" = 4, "0.0025" = 4, "0.005" = 4, "0.01" = 4)) %>%
kableExtra::scroll_box(width = "100%") %>%
kableExtra::kable_styling(position = 'center',
bootstrap_options = c("striped", "hover", "condensed", "responsive", full_width = F))
} else {
fil <- 'assets/tables/ch4-tab4-latex.csv'
tab4 <- read.csv(fil, stringsAsFactors = FALSE)
names(tab4) <- c('', rep(c('$x$','$N$','$Pr$','$p$'), 4))
knitr::kable(tab4, booktabs = TRUE, escape = FALSE, format = 'latex',
caption = "Caliper test for exactly recalculated $p$-values per journal for different binwidths.") %>%
kableExtra::add_header_above(c("Binwidth" = 1, "0.00125" = 4, "0.0025" = 4, "0.005" = 4, "0.01" = 4)) %>%
landscape() %>%
kableExtra::kable_styling(latex_options = c('striped', 'scale_down'), position = 'center')
}
```
```{r recalculated2, echo=FALSE}
if (knitr::is_html_output()) {
fil <- 'assets/tables/ch4-tab5-html.csv'
tab5 <- read.csv(fil, stringsAsFactors = FALSE)
names(tab5) <- c('', rep(c('$x$','$N$','$Pr$','$p$'), 4))
knitr::kable(tab5, booktabs = TRUE, escape = TRUE,
caption = "Caliper tests for exactly recalculated and exactly reported $p$-values per journal, including alternative binwidths.") %>%
kableExtra::add_header_above(c("Binwidth" = 1, "0.00125" = 4, "0.0025" = 4, "0.005" = 4, "0.01" = 4)) %>%
kableExtra::scroll_box(width = "100%") %>%
kableExtra::kable_styling(position = 'center',
bootstrap_options = c("striped", "hover", "condensed", "responsive", full_width = F))
} else {
fil <- 'assets/tables/ch4-tab5-latex.csv'
tab5 <- read.csv(fil, stringsAsFactors = FALSE)
names(tab5) <- c('', rep(c('$x$','$N$','$Pr$','$p$'), 4))
knitr::kable(tab5, booktabs = TRUE, escape = FALSE, format = 'latex',
caption = "Caliper tests for exactly recalculated and exactly reported $p$-values per journal, including alternative binwidths.") %>%
kableExtra::add_header_above(c("Binwidth" = 1, "0.00125" = 4, "0.0025" = 4, "0.005" = 4, "0.01" = 4)) %>%
landscape() %>%
kableExtra::kable_styling(latex_options = c('striped', 'scale_down'), position = 'center')
}
```
### Excessive significance over time
The regression results of the development of a bump below .05 over time, based on recalculated $p$-values, are shown in Table \@ref(tab:excess). Results indicate that there is no evidence for a linear relation between publication year and the degree to which a bump of $p$-values below .05 is present across the different binwidths (only results for binwidth .00125 are presented; results for the other binwidths available at [osf.io/96kbc/](https://osf.io/96kbc/)). Conversely, for PLOS there is some evidence for a minor increase of a bump throughout the years ($b=.072,p=.039$), but this result is not robust for binwidths .0025, .005, and .01. These results contrast with @doi:10.1080/17470218.2013.863371, who found a linear relation between time and the degree to which a bump occurred for JEPG and JPSP. Hence, based on the period 1985-2013, our findings contrast with the increase of a bump below .05 for the period 1965-2005 in psychology [@doi:10.1080/17470218.2013.863371]. In other words, our results of the Caliper test indicate that, generally speaking, there is no evidence for an increasing prevalence of $p$-values just below .05 or of QRPs causing such a bump in psychology.
```{r excess, echo=FALSE}
if (knitr::is_html_output()) {
fil <- 'assets/tables/ch4-tab6-html.csv'
tab6 <- read.csv(fil, stringsAsFactors = FALSE)
names(tab6)[1] <- ""
names(tab6)[5] <- "*SE*"
names(tab6)[6] <- "*t*"
names(tab6)[7] <- "*p*"
knitr::kable(tab6, booktabs = TRUE, escape = TRUE,
caption = "Linear regression coefficients as a test of increasing excess of $p$-values just below .05.") %>%
kableExtra::footnote(general = "Intercept indicates the degree of excess for the first year of the estimated timespan (>0 is excess).") %>%
kableExtra::scroll_box(width = "100%") %>%
kableExtra::kable_styling(position = 'center',
bootstrap_options = c("striped", "hover", "condensed", "responsive", full_width = F))
} else {
fil <- 'assets/tables/ch4-tab6-latex.csv'
tab6 <- read.csv(fil, stringsAsFactors = FALSE)
names(tab6)[1] <- ""
names(tab6)[5] <- "$SE$"
names(tab6)[6] <- "$t$"
names(tab6)[7] <- "$p$"
knitr::kable(tab6, booktabs = TRUE, escape = FALSE, format = 'latex',
caption = "Linear regression coefficients as a test of increasing excess of $p$-values just below .05.") %>%
kableExtra::footnote(general = "Intercept indicates the degree of excess for the first year of the estimated timespan ($>0$ is excess).", escape = FALSE) %>%
kableExtra::kable_styling(latex_options = c('striped', 'hold_position', 'scale_down'), position = 'center')
}
```
### Results of two measures based on modeling $p$-value distributions
#### Simulation study
Table \@ref(tab:simres) shows the results of the two measures for data simulated with and without data peeking. The column headers show the mean effect size (i.e., $\delta$) and heterogeneity (i.e., $\tau$) of the simulated conditions, with the corresponding $\rho_F$ and $\tau_{\rho_F}$ on the Fisher transformed correlation scale. The first set of rows shows the results for the data simulated without data peeking, of which we discuss the results first.
<!-- hier zit nog iets wat alles kapot maakt -->
```{r simres, echo=FALSE}
if (knitr::is_html_output()) {
fil <- 'assets/tables/ch4-tab7-html.csv'
tab7 <- read.csv(fil, stringsAsFactors = FALSE)
tab7 <- read.csv(fil, stringsAsFactors = FALSE)
names(tab7) <- c('',
'$p$-values',
'',
'$\\delta=0,\\rho_{F}=0$',
'$\\delta=.2,\\rho_{F}=.099$',
'$\\delta=.5,\\rho_{F}=.247$',
'$\\delta=.8,\\rho_{F}=.390$',
'$\\delta=0,\\rho_{F}=0$',
'$\\delta=.2,\\rho_{F}=.099$',
'$\\delta=.5,\\rho_{F}=.247$',
'$\\delta=.8,\\rho_{F}=.390$')
knitr::kable(tab7, booktabs = TRUE, escape = FALSE,
caption = "Results of parameter estimation of the distribution of effect sizes and measures of data peeking as a function of population effect size ($\\delta$, $\\rho_F$), population heterogeneity ($\\tau$), and data peeking, for the simulated data. Results are based on all $p$-values 0-1, $p$-values $\\leq.05$, and $\\leq.00125$.") %>%
## kableExtra::footnote(general = "Results are based on all $p$-values 0-1, p-values $\\leq.05$, and $\\leq.00125$.") %>%
kableExtra::add_header_above(c(" " = 3, "$\\\\\\tau=0$" = 4, "$\\\\\\tau=.15$" = 4), escape = FALSE) %>%
kableExtra::scroll_box(width = "100%") %>%
kableExtra::kable_styling(position = 'center',
bootstrap_options = c("striped", "hover", "condensed", "responsive", full_width = F))
} else {
fil <- 'assets/tables/ch4-tab7-latex.csv'
tab7 <- read.csv(fil, stringsAsFactors = FALSE)
names(tab7) <- c('',
'$p$-values',
'',
'$\\delta=0,\\rho_{F}=0$',
'$\\delta=.2,\\rho_{F}=.099$',
'$\\delta=.5,\\rho_{F}=.247$',
'$\\delta=.8,\\rho_{F}=.390$',
'$\\delta=0,\\rho_{F}=0$',
'$\\delta=.2,\\rho_{F}=.099$',
'$\\delta=.5,\\rho_{F}=.247$',
'$\\delta=.8,\\rho_{F}=.390$')
knitr::kable(tab7, booktabs = TRUE, escape = FALSE, format = 'latex', align = 'lllrrrrrrrr',
caption = "Results of parameter estimation of the distribution of effect sizes and measures of data peeking as a function of population effect size ($\\delta$, $\\rho_F$), population heterogeneity ($\\tau$), and data peeking, for the simulated data. Results are based on all $p$-values 0-1, $p$-values $\\leq.05$, and $\\leq.00125$.") %>%
kableExtra::add_header_above(c(" " = 3, "$\\\\tau=0$" = 4, "$\\\\tau=.15$" = 4), escape = FALSE) %>%
landscape() %>%
kableExtra::kable_styling(latex_options = c('striped', 'scale_down'), position = 'center')
}
```
The results for the data without data peeking inform us on (i) whether the effect size distribution parameters can accurately be recovered using only very small ($\leq.00125$) or small $p$-values ($\leq.05$), and (ii) if both measures accurately signal no data peeking. Note that $\rho_F$ is slightly overestimated due to categorizing the $p$-value distribution into 40 categories: the estimates based on all $p$-values (i.e., $\hat{\rho}_F$, first row) are slightly larger than the population parameter (i.e., $\rho_F$, column headers).
Answering the first question of accurate parameter estimates, whenever there is no heterogeneity (i.e., $\tau_{\rho_F}=0$) both $\rho_F$ and $\tau_{\rho_F}$ are accurately recovered. When heterogeneity is non-zero, the parameters were also accurately recovered, but not when $\rho_F=0$. Here, $\rho_F$ was overestimated (equal to .1) and $\tau_{\rho_F}$ underestimated (.025 rather than the true .077), while at the same time the misfit was negligible.
The latter result, that the effect is overestimated under heterogeneity when $\rho_F=0$, is explained by the fact that a $p$-value distribution can accurately be modeled with an infinite range of negatively correlated values of $\rho_F$ and $\tau_{\rho_F}$. An increase in $\rho_F$ yields a more right-skewed distribution, which is hardly distinguishable from the right-skewed distribution caused by an increase in $\tau_{\rho_F}$. Hence almost identical $p$-value distributions can be generated with ($\delta$,$\tau$) and some values ($\delta^*$,$\tau^*$), with $\delta^*>\mu$ and at the same time $\tau^*<\tau$, or $\delta^*<\mu$ and at the same time $\tau^*>\tau$. The similar effects of both parameters on the fitted $p$-value distribution already hint at potential problems for both measures, because performance of these measures is dependent on accurate estimates of these parameters.
With respect to the second question, whether the measures accurately signal the absence of data peeking, the first measure does so in both homo- and heterogeneous conditions, whereas the second measure correctly signals absence only under homogeneity. The first measure signals data peeking if the estimate of $\rho_F$ is smaller when based on $p\leq.05$ than on $p\leq.00125$. Previously, we already noted that effect size estimates were identical to population effect sizes under homogeneity, and equal or *larger* when based on $p\leq.00125$ under heterogeneity. This suggests that the first measure behaves well if there is no data peeking (but see the conclusion section). The second measure, $D$, performed well (i.e., was equal to 1) under homogeneity, but incorrectly suggested data peeking under heterogeneity. For instance, $D=1.205$ for $\rho_F$ = 0 and $\tau=.15$, which suggests that 20.5\% more $p$-values were observed in the interval .00125-.05 than were expected based on the $\hat{\rho}_F$ estimate even though no data peeking occurred. The explanation for the breakdown of the performance of $D$ is that the parameters of the effect size distribution were not accurately recovered, overestimating the average effect size and underestimating heterogeneity based on small $p$-values. This yields a lower expected frequency of higher $p$-values (between .00125 and .05), thereby falsely suggesting data peeking.
The last rows present the results obtained when data peeking does occur. First, consider the estimates of $\rho_F$ and the performance of the first measure of data peeking. The estimates of $\rho_F$ confirm that data peeking results in underestimation, particularly if the average true effect size is not large (i.e., $\delta=.2$ or $.5$). Moreover, downward bias of $\rho_F$ decreases when it is estimated on $p$-values $\leq.00125$ than on $\leq.05$, accurately signaling data peeking with the first measure. For instance, if $\rho_F=.099$ and $\tau=0$, $\hat{\rho}_F=.075$ when based on $p$-values $\leq.00125$ and $\hat{\rho}_F=0$ when based on $p$-values $\leq.05$. Together with the good performance of this measure under no data peeking, these results suggest that the first measure may be useful to detect data peeking in practice.
Consider the estimates of $\tau_{\rho_F}$ and the performance of $D$. Similar to conditions under no data peeking, heterogeneity is grossly underestimated when using $p$-values $\leq.00125$. Hence $D$ cannot be expected to perform well under data peeking. Although $D$-values seem to correctly signal data peeking in all conditions and decrease as expected when the effect size increases, these values do not correspond to the actual values of data peeking. For instance, consider the condition with $\delta=.5$ and $\tau_{\rho_F}=.15$; of the 582,659 simulated $p$-values in interval .00125-.05, 106,241 $p$-values were obtained through data-peeking, which yields a true $D=1.223$, which is very different from the estimated $D=1.472$ in Table \@ref(tab:simres).
Finally, consider the (mis)fit of the estimated $p$-value distribution. Despite the considerable downward bias in heterogeneity estimate $\hat{\tau}_{\rho_F}$, the simulated $p$-value distribution is mostly well approximated by the expected $p$-value distribution, as indicated by the small values of the $\chi^2$ statistic for $p$-values in 0-.00125. Hence, good fit again does not imply accurate parameter estimates. The misfit of the estimated distribution for $p$-values $\leq.05$ is indicated by large $\chi^2$-values, particularly when the $p$-value distribution is not monotonically decreasing (which is the case for, e.g., $\delta=0$).
To conclude, this simulation study showed that under true homogeneity both measures of data peeking can accurately signal both absence and presence of data peeking. However, under true heterogeneity, heterogeneity is underestimated and the performance of $D$ breaks down, while results suggest that comparing estimates of average effect size, the first measure, may still accurately signal both the absence and presence of data peeking.
#### Applied to data of eight psychology journals
Figure \@ref(fig:bump-fig5) depicts the observed $p$-value distribution and the expected $p$-value distribution corresponding to the fitted effect size distribution based on $p$-values $\leq.00125$. Estimates for $p$-values $\leq.05$ were effect size $\hat{\rho}_F=0$ and heterogeneity $\hat{\tau}_{\rho_F}=.183$, and $\hat{\rho}_F=.149$ and $\hat{\tau}_{\rho_F}=.106$ for $p$-values $\leq.00125$. Note that we only considered nonnegative values of $\delta$ in the estimation procedure. Misfit between observed and expected $p$-value distribution for $p\leq.00125$ was minor ($\chi^2=4.1$), indicating that the observed $p$-values $\leq.00125$ were well approximated by the estimated effect size distribution.
```{r bump-fig5, echo = FALSE, fig.cap = "Observed proportions of $p$-values (circles) and expected proportions of $p$-values based on estimated $\\hat{\\rho}_F$ and estimated $\\hat{\\tau}_{\\rho_F}$ estimated from 0-.00125 (crosses).", fig.align="center", out.width = '80%', fig.pos = 'h'}
knitr::include_graphics('assets/figures/bump-fig5.png')
```
Our first measure suggests practices leading to a monotonic excess of $p$-values below .05, because the estimated effect size based on all significant $p$-values (i.e., 0) is much smaller than the supposedly more accurate estimate based on only the very small $p$-values (i.e., .183). Moreover, assuming that effect sizes are normally distributed with $\rho_F=0$ and $\tau_{\rho_F}=.183$, combined with the degrees of freedom of the observed effects, implies that only 27.5% of all effects would be statistically significant. However, of all reported $p$-values, 74.7% were statistically significant, but this difference may at least partly be caused by other factors such as publication bias. It is highly unlikely that the average true effect size underlying statistically significant results in psychology is truly zero. It remains undecided, however, whether this very low estimate is mainly due to QRPs leading to a downward bias of the effect size estimate, or to a misspecification of the model, an issue we revisit later in the paper.
For the second measure that compares the ratio of observed and expected $p$-values below .05, we found $D=.701$, which does not suggest data peeking but *under*-reporting of $p$-values (29.9%) in the $p$-value interval .00125-.05. The simulation results, however, have already demonstrated that the measure $D$ performs badly under effect size heterogeneity. Since heterogeneity is underlying the observed data, we conclude that the measure $D$ is not useful for investigating evidence of a bump or monotonic excess of $p$-values.
## Limitations and conclusions
Before concluding, some limitations of our method to collect $p$-values need to be addressed. First, `statcheck` [@statcheck;@doi:10.3758/s13428-015-0664-2], the R package used to collect the observed data, extracts all APA test results reported in the text of an article, but not those reported in tables. Hence, our selection of results is potentially not representative of all reported results and systematically excludes results that are not reported to APA standards. Second, our analysis assumed that test statistics other than $p$-values were accurately reported. If test statistics and degrees of freedom are incorrectly reported, recalculated $p$-values are wrong as well. We identified some erroneous test statistics (e.g., $df_1=0$ and $r>1$), but do not know how often errors in reported test statistics and $df$ occur and how these errors may have affected our results. We assumed that $p$-value errors were made due to the overemphasis on them in current day research.
In light of conflicting findings and interpretations, we aimed to provide final answers to the questions (1) Does a bump or monotonic excess of $p$-values below .05 exist in psychology? and (2) Did evidence for a bump increase over time in psychology? Answering these research questions may inform us on the prevalence of QRPs and its development over time in psychology. Using `statcheck`, we extracted and analyzed 258,050 test results conforming to APA-style across 30,710 articles from eight high impact journals in psychology, and distinguished between results with inexactly reported $p$-values, exactly reported $p$-values, and recalculated $p$-values. The basic idea underlying our analyses is that QRPs distort the $p$-value distribution. We argued that only some QRPs yield an excess of $p$-values just below .05, and show that QRPs sometimes yield a bump and sometimes only monotonic excess of $p$-values just below .05. We used the Caliper test to test for a bump, and suggested two measures to examine monotonic excess.
Starting with the existence of a bump in psychology, we drew the following conclusions. First, *inexactly* reported $p$-values are not useful for analyses of $p$-value distributions. Second, a bump in *exactly* reported $p$-values indeed exists in psychology journals DP, JAP, and JPSP. QRPs leading to just significant $p$-values can explain these bumps, but we also cannot rule out the explanation that scientists in these particular journals are more prone to exactly report $p$-values just below .05 (e.g., to emphasize they are really smaller than .05) than $p$-values considerably smaller than .05. Third, contradicting @doi:10.1080/17470218.2013.863371, the bump and evidence of a bump in psychology did not increase over the years. Fourth, when analyzing only the *exactly* reported $p$-values equal to .05, clear and direct evidence was obtained for the QRP "incorrect rounding of $p$-value" [@doi:10.1177/0956797611430953]. Evidence of this QRP, which contributed to the bump in exactly reported $p$-values in psychology, was found in all psychology journals. Fifth, after removing reporting errors and analyzing the *recalculated* reported $p$-values, evidence of a bump was found only for JPSP. Again, this may have been caused by QRPs or by scientists being more prone to report all test statistics when $p$-values are just below .05 than if they are considerable smaller than zero.
The conclusions obtained with the two measures investigating the bump and monotonic excess are not satisfactory. First, performance of both measures is dependent on accurately recovering parameters of the effect size distribution, which turned out to be difficult; estimates of effect size heterogeneity and average effect size are highly correlated and unstable when based on only statistically significant findings. Second, simulations show that one of the measures, $D$, does not accurately assess the QRP data peeking when effect sizes are heterogeneous. Third, even though performance of the second measure (i.e., difference between effect sizes based on contaminated and supposedly uncontaminated $p$-values) is affected by estimation problems, it correctly signaled data peeking in the simulations. Fourth, when applying the second measure to the observed distribution of significant $p$-values in psychology, the measure found evidence of monotonic excess of $p$-values; the average effect size estimate based on all these $p$-values was 0, which seems very unrealistic, and suggests the use of QRPs in psychology leading to $p$-values just below .05.
Notwithstanding the outcome of the second measure, suggesting QRPs that cause monotonic excess, we do not consider it as direct evidence of such QRPs in psychology. Lakens (p.3; 2015) suggests that "it is essential to use a model of $p$-value distributions before drawing conclusions about the underlying reasons for specific distributions of $p$-values extracted from the scientific literature." We explicitly modeled the effect size distribution and by using the degrees of freedom of test results also model the effect sizes' power and the $p$-value distribution. But we fear this is not and cannot be sufficient. First of all, we could not accurately recover the effect size distribution under heterogeneity in our simulation study, even if all assumptions of our model were met. This rendered measure $D$ unfruitful when there is heterogeneity, and severely limits the usefulness of the second measure that compares estimated average effect sizes. Second, devising other models may yield other results and thereby other interpretations [@doi:10.1093/biostatistics/kxt032;@doi:10.1093/biostatistics/kxt035;@doi:10.7717/peerj.1142;@doi:10.7717/peerj.733].
Results of all the aforementioned models are most likely not robust to violations of their assumptions. For instance, we assume a normal distribution of true effect sizes. This assumption is surely violated, since the reported $p$-values arise from a mixture of many different types of effects, such as very large effects (manipulation checks), effects corresponding to main hypotheses, and zero effects ('control' variables). Additionally, consider the QRPs themselves; we examined the effect of only one QRP, data peeking, in one of its limited variants. Other QRPs exist that also increase the prevalence of $p$-values just below .05, such as multiple operationalizations of a measure and selecting the first one to be significant. Other QRPs even increase the frequency of very small $p$-values [@doi:10.1177/1745691616650874]. We deem it impossible to accurately model QRPs and their effects, considering the difficulties we already demonstrated for modeling the $p$-value distribution generated using a single QRP that was clearly defined. To conclude, we fear that @doi:10.1093/biostatistics/kxt034 may be right when suggesting that drawing conclusions with regard to any QRP based on modeling $p$-value distributions obtained from automatically extracted results is unfruitful.
On the other hand, we do recommend modeling effect size and $p$-value distributions of results that all intend to test the same hypothesis, to prevent contamination by irrelevant test results [@doi:10.7717/peerj.1715;@doi:10.1037/xge0000104]. Examples of methods that focus on similar results are $p$-uniform [@doi:10.1037/met0000025] and $p$-curve [@doi:10.1037/a0033242], which model statistically significant statistics pertaining to one specific effect and estimate the effect size based on these statistics while correcting for publication bias. Further research should reveal if both methods can also be used to detect and correct for $p$-hacking in the context of estimating one particular effect size. Preliminary results suggest, however, that detection and correcting for $p$-hacking based on statistics alone is rather challenging [@doi:10.1177/1745691616650874].