aloy / CarletonStats

Repository for the CarletonStats R package
GNU General Public License v2.0
0 stars 0 forks source link

print.carlperm can round p-values to zero #5

Open apoppick opened 4 months ago

apoppick commented 4 months ago

print.carlperm rounds the p-value to 5 digits, which can result in rounding down to zero if using a larger value of permutations and p < 0.000005. Perhaps replace with formatC(attr(x, "pval"), digits = 5)?

aloy commented 4 months ago

Thanks for finding that. I had just ported over the old code with some new organization. I can make that change.