Open felixgolcher opened 3 years ago
Another, very small point: p-vals are not zero padded, right? With digits.p
set to two you get .065, but also .01 instead of the .010 some might prefer.
Setting digits.p to 1 shows (here, at least) pvals to be below .001 which are clearly not:
This function simply works with round()
, that's why you get 0
, and 0
is formatted a <0.001
:
round(.02)
#> [1] 0
Created on 2021-10-16 by the reprex package (v2.0.1)
Another, very small point: p-vals are not zero padded, right? With digits.p set to two you get .065, but also .01 instead of the .010 some might prefer.
Do you have a reproducible example? According to the code, the formatting should be 0.0100
when digits.p = 4
.
This function simply works with round(), that's why you get 0, and 0 is formatted a <0.001:
Understood. Is that behavior intended though? I bet, there's a reason you did not use signif
.
Do you have a reproducible example? According to the code, the formatting should be 0.0100 when digits.p = 4.
I don't because you are right and I was wrong. I did not figure out the rounding thing and got mixed up.
I bet, there's a reason you did not use signif.
Yes, when I started working on sjPlot, I just recently switched from SPSS to R and wasn't aware of that function ;-)
You switched from SPSS and immediately set out to write this gorgeous package? That's a feat. Are you interested in a MR for that or do you like it just as it is?
Feel free to submit a PR, that would be great!
Thanks a lot for that fantastic package. It saved so much time, effort and brain for me!
Setting
digits.p
to 1 shows (here, at least) pvals to be below .001 which are clearly not:Session Info: