convert z-scores to pvalues

z2p(z, neg_log10_p = FALSE)

Arguments

z

a vector of z-scores

neg_log10_p

If TRUE, returns -log10(p-values). Otherwise, returns p-values.

Value

a vector of p-values, or -log10(p-values) if neg_log10_p is TRUE.