scienceverse / papercheck

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

Reporting p-values of 0 #3

Closed Lakens closed 3 months ago

Lakens commented 4 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 3 months ago

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