Entering edit mode
2.4 years ago
michael.flower.14
▴
200
I've got some data with p values expressed as -log(p). How do I invert this to the p values?
I've read here about undoing -log10(p):
How can I convert -log10 (p-value) to p-value?
p <- 0.01
logp <- -log10(p)
10^-logp
Here are some example -log(p) in the table:
1.542108761
1.760644949
1.567865477
1.779197974
Is it:
exp(1)^(-logp)
Thanks!
Hi Michael,
The correct transformation would be:
1/exp( )
The proof:
Kind regards / Cordiali saluti,
Kevin
Moved back to comment, as I had interpreted that the log transformation under question was natural log (log e).