Calculate SDS values for 2-dimensional matrix of covariates -- old version
sds_2d(
value,
age,
x2,
sex,
item,
ref,
type = "SDS",
male = "male",
female = "female"
)
vector containing SDS or percentile values
vector of measurement values
vector of age values
second vector of covariates
vector of sex
name of the item e.g. "height"
RefGroup object
"SDS" or "perc"
coding of sex for male
coding of sex for male
Mandy Vogel
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.