get_wfa_pchart | R Documentation |
Function to extract weight-for-age percentile data from the World Health Organization (WHO) website on Child Growth Standards http://www.who.int/childgrowth/standards/" which contains a collection of reference data from the WHO Multicentre Growth Reference Study (MGRS). This function extracts the expanded data provided by WHO for creating growth charts for weight-for-age percentiles.
get_wfa_pchart( baseurl = "http://www.who.int/childgrowth/standards/", gender = c("boys", "girls") )
baseurl |
Character value for the base URL of the WHO Child Growth Standards. The default is http://www.who.int/childgrowth/standards/. This can be adjusted should WHO change the base URL for the Child Growth Standards section of their website. |
gender |
A character value or vector that specifies the sex-specific
reference data to extract. The default is |
A data frame in tidy format with 8 coloumns and 55710 rows:
sex
Sex of child. 1 = boy; 2 = girl
month
Age of child in months. This is calculated from the original data using that data for age of child in days
day
Age of child in days. This is provided for by default in the original data
l
L
component of the LMS method for normalising growth
centile standards. L
is the trend in the optimal power to obtain
normality
m
M
component of the LMS method for normalising growth
centile standards. M
is the trend in the mean
s
S
component of the LMS method for normalising growth
centile standards. S
is the trend in the coefficient of variation
p_type
Type of z-score. Can be one of 0.10th
, 1st
,
3rd
, 5th
, 10th
, 15th
, 25th
, 50th
,
75th
, 85th
, 90th
, 95th
, 97th
,
99th
and 99.9th
p_value
Weight (kgs) value for the specified p_type
Ernest Guevarra
# Get weight-for-age percentile expanded tables for charting #get_wfa_pchart()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.