Description Usage Arguments Details Value References Examples
Takes Z-statistic(s) as input and outputs P-value(s). This function works for absolute Z-statistics up to x
1 |
Z |
Z-statistic, numeric vector. |
method |
|
The usual P value calculation for |Z|-statistics < 38 is pnorm(abs(Z), lower.tail = FALSE) * 2
or,
alternatively, exp(pnorm(abs(Z), log.p = TRUE, lower.tail = FALSE)) * 2
.
For anything that is larger, we can use the R package Rmpfr::pnorm
that helps us with small digits.
P P-value, same length as Z.
See also this post: https://stackoverflow.com/questions/46416027/how-to-compute-p-values-from-z-scores-in-r-when-the-z-score-is-large-pvalue-muc
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.