Open ruthchia opened 1 year ago
Hi Ruth,
Yes good catch. It looks like it is still in natural log, and not log10. For example,
> Z = 4.5800
> 2*pnorm(abs(Z), lower.tail = FALSE)
[1] 4.649759e-06
> pnorm(abs(Z), lower.tail = FALSE, log.p=TRUE) + log(2) # log(2 * p)
[1] -12.2787
Great - thanks for your quick response!
Hi, I wanted to check if the
-log10(P)
values included in the focus plot are on the log10 or natural log scale. I did some conversions of the Z-scores and noticed that it did not match up when I recalculated it in R.For example, for a Z-score value of
4.5800
, the FOCUS outputted -log10(P) in the plot was12.27869
. When I calculated in R (see below), I got a different value. Can you please help clarify? Did I miss something that resulted in my calculations being incorrect?Thanks, Ruth