Description Usage Arguments Details Value Examples
The first function, getCDC()
, is usually called by the addCDC()
function but could be used as a stand-alone calculator for getting z-score
for a given anthropometric measurement.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
sex |
A vector specifying the sex of the subject or a character value
for the name of the variable in | |||||||||||||||||
firstPart |
A vector or a character value for the name of the variable
in
If name of variable in | |||||||||||||||||
secondPart |
A vector or a character value for the name of variable
in
If name of variable in | |||||||||||||||||
thirdPart |
A vector or a character value for the name of variable
in | |||||||||||||||||
index |
The index to be calculated. One of:
Give a quoted index name as in (e.g.) | |||||||||||||||||
standing |
A vector or a character value for name of variable in | |||||||||||||||||
data |
A survey dataset as a data.frame object | |||||||||||||||||
output |
The name of the column containing the specified index to be
added to the dataset. This is an optional parameter. If you do not specify
a value for output then the added column will take the name of the
specified index with a | |||||||||||||||||
digits |
The number of decimal places for |
addCDC()
adds the CDC Growth Reference z-scores to a data frame of
anthropometric data for weight, height or length, head circumference, and
body mass index (BMI)
A data.frame of the survey dataset with the calculated z-scores added.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | # Given a male child 10 months old with a weight of 5.7 kgs, height of 64.2
# cms, and MUAC of 125 mm:
#
# Calculate weight-for-height
getCDC(sex = 1,
firstPart = 5.7,
secondPart = 64.2,
index = "wfh",
standing = 3)
# calculate weight-for-age
getCDC(sex = 1,
firstPart = 5.7,
secondPart = 10,
index = "wfa",
standing = 3)
# calculate height-for-age
getCDC(sex = 1,
firstPart = 64.2,
secondPart = 10,
index = "hfa",
standing = 3)
# Calculate weight-for-height (wfh) for the anthro3 dataset
addCDC(data = anthro3,
sex = "sex",
firstPart = "weight",
secondPart = "height",
index = "wfh")
# Calculate weight-for-age (wfa) for the anthro3 dataset
addCDC(data = anthro3,
sex = "sex",
firstPart = "weight",
secondPart = "age",
index = "wfa")
# Calculate height-for-age (hfa) for the anthro3 dataset
addCDC(data = anthro3,
sex = "sex",
firstPart = "height",
secondPart = "age",
index = "hfa")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.