Description Usage Arguments Value Examples
This function is usually called by the addWGSR()
function
but could be used as a stand-alone calculator for getting z-score for a given
anthropometric measurement.
1 2 |
sex |
Sex of the subject. This must be coded as |
firstPart |
Name of variable specifying:
Give a quoted variable name as in (e.g.) |
secondPart |
Name of variable specifying:
Give a quoted variable name as in (e.g.) |
index |
The index to be calculated and added to
Give a quoted index name as in (e.g.) |
standing |
Variable specifying how stature was measured. If NULL then age
(for |
thirdPart |
Name of variable specifying age (in days) for BMI/A. Give a
quoted variable name as in (e.g.) |
A numeric value or vector of z-scores for the specified index
.
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 | # 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
getWGSR(sex = 1,
firstPart = 5.7,
secondPart = 64.2,
index = "wfh",
standing = 3)
# calculate weight-for-age
getWGSR(sex = 1,
firstPart = 5.7,
secondPart = 10,
index = "wfa",
standing = 3)
# calculate height-for-age
getWGSR(sex = 1,
firstPart = 64.2,
secondPart = 10,
index = "hfa",
standing = 3)
# Calculate MUAC-for-age z-score for a girl
getWGSR(sex = 1,
firstPart = 20,
secondPart = 62 * (365.25 / 12),
index = "mfa")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.