scienceverse / papercheck

Check Scientific Papers for Best Practices
https://scienceverse.github.io/papercheck/
Other
2 stars 0 forks source link

Reporting p-values of 0 #3

Closed Lakens closed 6 months ago

Lakens commented 6 months ago

Does anyone report p = 0.00 or p < .000 or p > .000?

p_zero_regex <- "p\s+[\u003C\u2264\u003D\u003E]?\s+0?\.00[^0-9]|p\s+[\u003C\u2264\u003D\u003E]?\s+0?\.000[^0-9]|p\s+[\u003C\u2264\u003D\u003E]?\s+0?\.0000[^0-9]" text_found <- search_text(xml, p_zero_regex, section = "results")$text result_df <- data.frame(problem = rep("A p-value of exactly 0 was found", length(text_found)), text = text_found, solution = rep("P-values are never exactly zero. If p is smaller than .001, use p < .001", length(text_found)))

debruine commented 6 months ago

It looks like doing this through statcheck AllPValues is best here. See new function check_p_values()