z2p: Convert Z-scores into centiles

View source: R/z2p.R

z2pR Documentation

Convert Z-scores into centiles

Description

Functions z2p() and p2z() functions are the inverse of each other.

Usage

z2p(z, scale = 100)

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(s)

Stef van Buuren, 2021

Examples

z <- c(-1.96, -1.28, 0, 1.28, 1.96)
z2p(z)

growthcharts/centile documentation built on May 8, 2024, 9:25 a.m.