sds_2d: Calculate SDS Values for 2-dimensional matrix of covariates

View source: R/sdsvals.r

sds_2dR Documentation

Calculate SDS Values for 2-dimensional matrix of covariates

Description

Calculate SDS values for 2-dimensional matrix of covariates

Usage

sds_2d(
  value,
  age,
  x2,
  sex,
  item,
  ref,
  type = "SDS",
  male = "male",
  female = "female"
)

Arguments

value

vector of measurement values

age

vector of age values

x2

second vector of covariates

sex

vector of sex

item

name of the item e.g. "height"

ref

RefGroup object

type

"SDS" or "perc"

male

coding of sex for male

female

coding of sex for male

Details

The function takes a vector of measurement values, and of age and a second covariate (like age and height for blood pressure) of sex and a RefGroup object as arguments. It calculates the sds or percentile values. This function is beta.

the function searches for the nearest given point in the reference grid. From there, the SDS/percentile value will be calculated. Different from sds, no interpolation will be applied. The procedure is according to Neuhauser et al. Blood Pressure Percentiles by Age and Height from Nonoverweight Children and Adolescents in Germany. 2011.

Value

vector containing SDS or percentile values

Author(s)

Mandy Vogel


childsds documentation built on March 18, 2022, 7:55 p.m.

Related to sds_2d in childsds...