sds_pub2d | R Documentation |
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)
)
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 |
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.
vector containing SDS or percentile values
Mandy Vogel
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.