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

Description Usage Arguments Details Value Author(s)

View source: R/sdsvals.r

Description

Calculate SDS values for 2-dimensional matrix of covariates

Usage

1
2
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


mvogel78/childsds documentation built on May 23, 2019, 10:55 a.m.