p2z: Convert centiles into Z-scores

View source: R/p2z.R

p2zR Documentation

Convert centiles into Z-scores

Description

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

Usage

p2z(p, scale = 100)

Arguments

p

A numerical vector with centiles.

scale

The maximum of the scale. The default (100) returns for percentiles. Set scale = 1 to obtain probabilities.

Value

A vector with length(p) elements containing centiles.

Author(s)

Stef van Buuren, 2021

Examples

p <- c(2.5, 10, 50, 90, 97.5)
p2z(p)

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