Calculate SDS values depending on the Tanner stage and a second variable
sds_pub2d(
value,
pubstat,
x2,
sex,
item,
ref,
type = "SDS",
male = "male",
female = "female",
age = NULL,
id = 1:length(value)
)
vector containing SDS or percentile values
vector of measurement values
vector of Tanner stages coded 1 to 5
2nd predictor (vector), e.g. bmisds must be contained in reference
vector of sex
name of the item e.g. "height"
RefGroup object
"SDS" or "perc"
coding of sex for male
coding of sex for female
not used yet
order of values
Mandy Vogel
The function takes a vector of measurement values, and of tanner stage of a second variable (x2) and of sex and a RefGroup object as arguments. It calculates the sds or percentile values.