centile: Calculate y values.

Description Usage Arguments Value Examples

View source: R/lmsUtils.R

Description

Calculate y values.

Usage

1
2
3
4
5
6
7
8
9
centile(
  x,
  sds,
  sex = "male",
  measurement = "height",
  ref = GrowthSDS::kromeyerHauschild,
  refName,
  recodeSex
)

Arguments

x

x value of the subject (e.g. (gestational) age)

sds

sds value of the subject (e.g. height sds)

sex

sex of the subject

measurement

measurement from which sds originates

ref

Reference object to be used to calculate the centile, defaults to kromeyerHauschild either ref or refName must be given

refName

name of the reference to be used to calculate the centile values

recodeSex

list containing a mapping for sex to available sexes of the reference

Value

centile

Examples

1
2
3
4
5
6
7
sds(
  x   = 0,
  sds = 47,
  sex = 1,
  measurement = 'height',
  recodeSex   = list(`1` = 'male', `2` = 'female')
)

CrescNet/GrowthSDS documentation built on Feb. 4, 2021, 5:40 p.m.