sds_pub2d {childsds} | R Documentation |
Calculate SDS Values
Description
Calculate SDS values depending on the Tanner stage and a second variable
Usage
sds_pub2d(
value,
pubstat,
x2,
sex,
item,
ref,
type = "SDS",
male = "male",
female = "female",
age = NULL,
id = 1:length(value)
)
Arguments
value |
vector of measurement values |
pubstat |
vector of Tanner stages coded 1 to 5 |
x2 |
2nd predictor (vector), e.g. bmisds must be contained in reference |
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 female |
age |
not used yet |
id |
order of values |
Details
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.
Value
vector containing SDS or percentile values
Author(s)
Mandy Vogel
[Package childsds version 0.9.11 Index]