Readme - Stata Who Antroplus PDF
Readme - Stata Who Antroplus PDF
2. Three permanent (read-only) Stata data sets containing the WHO 2007 reference for
children aged 5-19 years: wfawho2007.dta, hfawho2007.dta and bfawho2007.dta.
Pre-requisites
STATA Version 7.0 Stata/SE (Special Edition of Stata) or higher is required to run two
macros (who2007_standard.ado and who2007_restriced). Intercooled Stata has a limit of
2,047 variables and with that the macros will only produce the z-scores output files (see
below the macros' section Exported files, point 1). The macro requires a STATA data set
containing age, sex and the anthropometric measurements. The input variables are
specified in the Parameters section.
Precautions:
1. Avoid any variable names starting with underscore "_" in the input STATA data
set; otherwise they may be replaced by the derived ones created by the macro.
2. Avoid any temporary format names starting with underscore "_"; otherwise they
may be replaced by the temporary ones created by the macro.
3. Avoid any STATA global macro variable names staring with underscore “_”,
except those defined by the system.
readme_stata.doc 1
Contact for reporting bugs/ comments:
Should you encounter any problems with this package, please send an e-mail with a clear
description of the identified problem to "[email protected]", specifying in the
subject line that it concerns the who2007_Stata package , the name of the macro
(who2007.ado) and kindly indicate which version of STATA you are using. Thank you.
Step 1. Create a sub-directory, for example "D:\WHO 2007 Stata", where you wish to
save the package (who2007_stata.zip). This directory should be reserved only
for the references tables (*who2007.dta) and the macros (who2007.ado) that are
contained in the zip file.
Step 2. Create a sub-directory, for example "D:\WHO 2007 workdata", where the
example data (survey_who2007.dta and pertinent output files) and your STATA
input data can be stored and where all the macro output files will be written to.
Step 3. It is recommended that you start by loading and running the example code below
(also found in survey_who2007.do) in the STATA do-file editor to see how the
data should be prepared and to fill in the macros' parameters according to their
requirements.
Note: The macros run on Stata/SE: The Special Edition version of Stata (type "help
SpecialEdition"). For users of Intercooled Stata, the macros will only produce the z
scores output files and the user gets the message
Reference
readme_stata.doc 2
The macro (who2007.ado)
Description
2. The macro produces sex- and age-specific estimates for the prevalence of
under/over nutrition and summary statistics (mean and SD) of the z-scores for
each indicator.
3. The macro runs with three permanent (read-only) Stata data sets containing the
WHO Reference 2007: wfawho2007.dta, hfawho2007.dta and bfawho2007.dta.
4. Extreme (i.e. biologically implausible) z-scores for each indicator are flagged
according to the following system:
Parameters
The macro requires 10 parameters that must be specified without any quotation marks.
reflib: to specify the package directory where the three STATA data sets
containing the WHO 2007 reference (age 5-19 years) are stored.
datalib: to specify the working directory where the input STATA data set
containing anthropometric measurements is stored.
datalab: to specify the name that will prefix the output files (datalab_z,
datalab_prev).
age: to specify the name of a numeric variable containing age information. Age can
be in days, months or years. An accurate age without any rounding or truncating is
readme_stata.doc 3
strongly recommended; ideally it should be derived from date of birth (DOB) and
date of measurement (DOM), i.e. DOM-DOB. Users must code any missing values
as ".", in which case none of the three age-related z-scores can be calculated.
ageunit: to specify the age unit of the age variable. It must be specified as either
"days", "months" or "years" (they are case sensitive). The macro converts age in
days or years to months, dividing it by 30.4375 days or multiplying it by 12 months,
respectively.
sw: to specify the name of a numeric variable containing the sampling weights. If
"sw=1" for all records, the un-weighted analysis is performed. If otherwise
specified, negative values in the sampling weights are not allowed and in this case
no prevalence tables will be produced.
Exported files
1. The macro creates, in the working directory, a STATA data set. The name of the
data set is datalab_z.dta (see the preceding Parameters section). This data set
retains all the records and variables from the input STATA data set and adds on
the following 8 variables derived by the macro:
readme_stata.doc 4
_fbfa Flag for _zbfa < -5 or _zbfa > 5
2. The macro creates, in the working directory, a data set in XLS format that has the
same data structure as the one in STATA format. The name of the data set is
datalab_z.xls.
3. The macro creates, in the working directory, an MS Excel file that contains the
point estimates and 95% confidence intervals for the indicator prevalences and z-
scores summary statistics. In this summary analysis, only children aged between
61 to 228 completed months are included. The age groups in yearly and monthly
intervals are shown below:
Age Indicator
An example
readme_stata.doc 5
/* Example: survey_who2007.do using survey_who2007.dta */
clear
set more 1
/* Higher memory might be necessary for larger datasets */
set memory 50m
set maxvar 10000
readme_stata.doc 6