Functions z2p()
and p2z()
functions are the inverse of each other.
Arguments
- z
A numerical vector with Z-scores.
- scale
The maximum of the scale. The default (100
) returns for
percentiles. Set scale = 1
to obtain probabilities.
Value
A vector with length(z)
elements containing centiles.
Author
Stef van Buuren, 2021
Examples
z <- c(-1.96, -1.28, 0, 1.28, 1.96)
z2p(z)
#> [1] 2.49979 10.02726 50.00000 89.97274 97.50021