-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgigs_classify_growth.sthlp
263 lines (211 loc) · 12.5 KB
/
gigs_classify_growth.sthlp
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
{smcl}
{* *! version 0.2.1 16 Jan 2025}{...}
{vieweralsosee "" "--"}{...}
{vieweralsosee "gigs: Conversion functions" "help ig_nbs"}{...}
{viewerjumpto "Syntax" "gigs_classify_growth##syntax"}{...}
{viewerjumpto "Description" "gigs_classify_growth##description"}{...}
{viewerjumpto "Options" "gigs_classify_growth##options"}{...}
{viewerjumpto "Remarks" "gigs_classify_growth##remarks"}{...}
{viewerjumpto "Examples" "gigs_classify_growth##examples"}{...}
{hi:help gigs_classify_growth}{right: ({browse "https://www.overleaf.com/project/641db63564edd62fb54c963b":SJXX-X: st0001})}
{hline}
{title:Title}
{p2colset 5 17 19 2}{...}
{p2col :{hi:gigs} {hline 2} Fetal, neonatal, and infant growth assessment using international growth standards}
{p2colreset}{...}
{marker syntax}{...}
{title:Syntax}
{p 8 17 2}{cmd:gigs_classify_growth} {it:outcomes} {ifin}{cmd:,}
{cmdab:gest:_days}{cmd:(}{varname}{cmd:)} {cmdab:age:_days}{cmd:(}{varname}{cmd:)} {cmdab:sex}{cmd:(}{varname}{cmd:)}
{cmdab:sexc:ode}{cmd:(}{cmdab:m:ale=}{it:code}{cmd:,}
{cmdab:f:emale=}{it:code}{cmd:)} [{cmdab:weight:_kg}{cmd:(}{varname}{cmd:)}
{cmdab:lenht:_cm}{cmd:(}{varname}{cmd:)}
{cmdab:headcirc:_cm}{cmd:(}{varname}{cmd:)}
{cmd:id(}{varname}{cmd:})}
{cmd:replace}]
{p 4 4 2}{cmd:by} cannot be used with this command.
{marker description}{...}
{title:Description}
{p 4 4 2}{cmd:gigs_classify_growth} is used to classify multiple common growth
indicators using anthropometric data. When run, this command generates new
variables with categories for size-for-gestational age, small vulnerable
newborn (SVN) types, stunting, wasting, underweight/weight-for-age, and head
size. It also generates variables with centiles/z-scores, pertinent to each
categorisation it performs.
{p 4 4 2}{it:outcomes} is used to specify which growth outcomes you want to
assess. This should be a space-separated list of the abbreviations in the table
below. Each requested outcome will generate new variables, or replace existing
variables if the {cmd:replace} option is specified and the variables in the
below table already exist.
{marker tab1}{...}
{col 5}{ul:Acceptable tokens for {it:outcomes}}
{col 5}{it:outcome}{col 20}Description{col 49}New continuous variable{col 76}New categorical variable(s)
{col 5}{hline 100}
{col 6}{bf:all}{col 20}All outcomes{col 49}
{col 6}{bf:sfga}{col 20}Size-for-gestational age{col 49}{bf:birthweight_centile}{col 76}{bf:sfga} {bf:sfga_severe}
{col 6}{bf:svn}{col 20}Small vulnerable newborns{col 49}{bf:birthweight_centile}{col 76}{bf:svn}
{col 6}{bf:stunting}{col 20}Stunting{col 49}{bf:lhaz}{col 76}{bf:stunting} {bf:stunting_outliers}
{col 6}{bf:wasting}{col 20}Wasting{col 49}{bf:wlz}{col 76}{bf:wasting} {bf:wasting_outliers}
{col 6}{bf:wfa}{col 20}Weight-for-age{col 49}{bf:waz}{col 76}{bf:wfa} {bf:wfa_outliers}
{col 6}{bf:headsize}{col 20}Head size{col 49}{bf:hcaz}{col 76}{bf:headsize}
{col 5}{hline 100}
{p 4 4 2}You can list several different {it:outcomes} at once, to specify which
you'd like to perform. So for example, you could supply the command with
'{bf:stunting wasting}' to run only stunting and wasting analyses; or
'{bf:headsize}' to only do a head size analysis. The continuous variables
generated by {bf:gigs_classify_growth} are {bf:double}s, whereas the
categorical variables are {help label:labelled} {bf:int} variables.
{marker tab2}{...}
{col 5}{ul:Values and labels in the 'sfga' and 'sfga_severe' variables generated by {cmd:gigs_classify_growth}}:
{col 9}Value{col 17}Label{col 56}Centile range
{col 9}{hline 68}
{col 10}{cmd:-2}{col 17}Severely small for gestational age {col 56}<3rd centile
{col 10}{cmd:-1}{col 17}Small for gestational age (SGA) {col 56}<10th centile
{col 11}{cmd:0}{col 17}Appropriate for gestational age (AGA){col 56}10th to 90th centile
{col 11}{cmd:1}{col 17}Large for gestational age (LGA) {col 56}>90th centile
{col 9}{hline 68}
{marker tab3}{...}
{col 5}{ul:Values and labels in the 'svn' variable generated by {cmd:gigs_classify_growth}}:
{col 9}Value{col 17}Label{col 32}Term status{col 47}Centile range
{col 9}{hline 59}
{col 10}{cmd:-4}{col 17}Preterm SGA{col 32}Preterm{col 47}<10th centile
{col 10}{cmd:-3}{col 17}Preterm AGA{col 32}Preterm{col 47}10th to 90th centile
{col 10}{cmd:-2}{col 17}Preterm LGA{col 32}Preterm{col 47}>90th centile
{col 10}{cmd:-1}{col 17}Term SGA{col 32}Term{col 47}<10th centile
{col 10}{cmd: 0}{col 17}Term AGA{col 32}Term{col 47}10th to 90th centile
{col 10}{cmd: 1}{col 17}Term LGA{col 32}Term{col 47}>90th centile
{col 9}{hline 59}
{marker tab4}{...}
{col 5}{ul:Values and labels in the 'stunting' and 'stunting_outliers' variables generated by {cmd:gigs_classify_growth}}:
{col 9}Value{col 17}Label{col 36}{it:Z}-score range
{col 9}{hline 41}
{col 10}{cmd: -2}{col 17}Severe stunting{col 37} -5 to -3
{col 10}{cmd: -1}{col 17}Stunting {col 37} -3 to -2
{col 10}{cmd: 0}{col 17}Not stunting {col 37} -2 to 5
{col 10}{cmd:999}{col 17}Outlier {col 37}<-5 or >5
{col 9}{hline 41}
{marker tab5}{...}
{col 5}{ul:Values and labels in the 'wasting' and 'wasting_outliers' variables generated by {cmd:gigs_classify_growth}}:
{col 9}Value{col 17}Label{col 36}{it:Z}-score range
{col 9}{hline 41}
{col 10}{cmd: -2}{col 17}Severe wasting{col 37} -5 to -3
{col 10}{cmd: -1}{col 17}Wasting {col 37} -3 to -2
{col 10}{cmd: 0}{col 17}Not wasting {col 37} -2 to 2
{col 10}{cmd: 1}{col 17}Overweight {col 37} 2 to 5
{col 10}{cmd:999}{col 17}Outlier {col 37}<-5 or >5
{col 9}{hline 41}
{marker tab6}{...}
{col 5}{ul:Values and labels in the 'wfa' and 'wfa_outliers' variables generated by {cmd:gigs_classify_growth}}:
{col 9}Value{col 17}Label{col 41}{it:Z}-score range
{col 9}{hline 45}
{col 10}{cmd: -2}{col 17}Severely underweight{col 42} -6 to -3
{col 10}{cmd: -1}{col 17}Underweight {col 42} -3 to -2
{col 10}{cmd: 0}{col 17}Normal weight {col 42} -2 to 2
{col 10}{cmd: 1}{col 17}Overweight {col 42} 2 to 5
{col 10}{cmd:999}{col 17}Outlier {col 42}<-6 or >5
{col 9}{hline 41}
{marker tab7}{...}
{col 5}{ul:Values and labels in the 'headsize' variable generated by {cmd:gigs_classify_growth}}:
{col 9}Value{col 17}Label{col 41}{it:Z}-score range
{col 9}{hline 45}
{col 10}{cmd: -2}{col 17}Severe microcephaly {col 42} {it:z} <= -3
{col 10}{cmd: -1}{col 17}Microcephaly {col 42}-3 to -2
{col 10}{cmd: 0}{col 17}Normal head size {col 42}-2 to 2
{col 10}{cmd: 1}{col 17}Macrocephaly {col 42} 2 to 3
{col 10}{cmd: 2}{col 17}Severe macrocephaly {col 42} {it:z} >= 3
{col 9}{hline 41}
{marker options}{...}
{title:Options}
{dlgtab:Required}
{phang}{opt gest:_days(varname numeric)} specifies gestational age in days for
each observation. This variable is used with {cmd:age_days()} to determine
which growth standard is applied for each observation.
{phang}{opt age:_days(varname numeric)} specifies chronological age in days for
each observation. This variable is used with {cmd:gest_days()} to determine
which growth standard is applied for each observation.
{phang}{opt sex(varname)} specifies the sex variable. It must be an unlabelled
int, byte, or string variable. The codes for {cmd:male} and {cmd:female} must
be specified by the {hi:sexcode()} option.
{phang}{cmdab:sexc:ode}{cmd:(}{cmdab:m:ale=}{it:code}{cmd:,}
{cmdab:f:emale=}{it:code}{cmd:)} specifies the codes for {cmd:male} and
{cmd:female}. The codes can be specified in either order, and the comma is
optional. Quotes around the codes are not allowed, even if your sex variable is
a string.
{dlgtab:Optional}
{phang}{opt weight:_kg(varname numeric)} specifies the weight in kg for
each observation. The command will note in the console if you request
size-for-gestational age ({bf:sfga}), small vulnerable newborn ({bf:svn}),
wasting ({bf:wasting}), or weight-for-age ({bf:wfa}) analyses but do not
supply this option.
{phang}{opt lenht:_cm(varname numeric)} specifies the length or height in cm for
each observation. It is assumed that where {hi:age_days()} is less than 731,
recumbent length measurements are provided, and that where {hi:age_days()} is
more than or equal to 731, standing height measurements are provided. The
command will note in the console if you request stunting ({bf:stunting}) or
wasting ({bf:wasting}) analyses but do not supply this option.
{phang}{opt headcirc:_cm(varname numeric)} specifies the length or height in cm
for each observation. The command will note in the console if you request a
head size ({bf:headsize}) analysis but do not supply this option.
{phang}{opt id(varname)} specifies the ID of each infant in the dataset. This
variable should be an integer, byte, or string. You must specify {cmd:id()} if
supplying data from multiple infants, or {cmd:gigs_classify_growth} will only
identify one birth measure across the whole dataset, and therefore return
incorrect results.
{phang}{opt replace} specifies whether {cmd:gigs_classify_growth} should replace
values in variables. If the command runs in replace mode, messages will be
issued to the console describing which variables have been replaced.
{marker remarks}{...}
{title:Remarks}
{pstd}This command applies z-scoring based on the gestational age and age in
days of each observation. The first observation for each infant identified by
the {cmd:id()} option is considered a birth observation if taken <72hrs after
birth. For all birth observations with a GA between 24+0 and 42+6 weeks, the
{help ig_nbs:{bf:ig_nbs()}} egen function is used to generate a birthweight
centile. For birth observations with a GA > 42+6 weeks, the
{help ig_nbs:{bf:who_gs()}} egen function is used instead.
{pstd}Non-birth observations are analysed with particular growth standards based
on whether they are a preterm or term infant. Preterm infants in GIGS have a
GA < 37+0 weeks, whereas term infants are 37+0 weeks or older. Preterm infants
with a post-menstrual age of 27+0 to 64+0 weeks (inclusive) are analysed with
the {help ig_nbs:{bf:ig_png()}} egen function. Term infants and preterm infants
older than 64+0 weeks post-menstrual age are analysed with the
{help ig_nbs:{bf:who_gs()}} egen function. Check out the source code on GitHub
to see exactly when/where each growth standard is applied.
{pstd}These functions will return missing values where observations have ages
outside the ranges specified for the
{help ig_nbs##tab1:gigs conversion functions}, but otherwise will not
automatically detect data errors (e.g. providing data in incorrect units).
Ensure you check your data before using this command or you may receive
incorrect results.
{marker examples}{...}
{title:Examples}
{pstd}These examples assume you have loaded the {bf:life6mo} dataset into Stata.
You can access this data by running:{p_end}
{phang2}{cmd:. net get gigs}{p_end}
{phang2}{cmd:. use life6mo}{p_end}
{pstd}Running all available classifications, where {cmd:sex} contains the codes {cmd:1} and {cmd:2}:{p_end}
{phang2}{cmd:. gigs_classify_growth all, age_days(age_days) gest_days(gestage) sex(sex) sexcode(male=1, female=2) weight_kg(wt_kg) lenht_cm(len_cm) headcirc_cm(headcirc_cm) id(id)}
{pstd}Running all available classifications in {cmd:replace} mode, only for observations where infants weigh < 2kg :{p_end}
{phang2}{cmd:. gigs_classify_growth sfga svn if weight_kg < 2, age_days(age_days) gest_days(gestage) sex(sex) sexcode(male=1, female=2) weight_kg(wt_kg) id(id) replace}
{pstd}You can use also use shorter versions of certain options (see the {help gigs_classify_growth##syntax:syntax diagram} for more information):{p_end}
{phang2}{cmd:. gigs_classify_growth stunting, age(age_days) gest(gestage) sex(sex) sexc(male=1, female=2) weight(wt_kg) lenht(len_cm) id(id) replace}
{marker authors}{...}
{title:Authors}
{pstd}Simon R. Parker{p_end}
{pstd}Maternal, Adolescent, Reproductive, and Child Health (MARCH) Center{p_end}
{pstd}London School of Hygiene & Tropical Medicine{p_end}
{pstd}London, U.K.{p_end}
{pstd}simon.parker@lshtm.ac.uk{p_end}
{pstd}Linda Vesel{p_end}
{pstd}Brigham and Women's Hospital, Boston{p_end}
{pstd}Massachusetts, U.S.A.{p_end}
{pstd}lvesel@ariadnelabs.org{p_end}
{pstd}Eric O. Ohuma{p_end}
{pstd}Maternal, Adolescent, Reproductive, and Child Health (MARCH) Center{p_end}
{pstd}London School of Hygiene & Tropical Medicine{p_end}
{pstd}London, U.K.{p_end}
{pstd}eric.ohuma@lshtm.ac.uk{p_end}
{title:Also see}
{p 4 14 2}Conversion functions: {help ig_nbs:documentation}
{p 4 14 2}Classification functions: {help classify_sfga:documentation}
{p 4 14 2}Article: {it:Stata Journal}, volume XX, number X: {browse "https://www.overleaf.com/project/641db63564edd62fb54c963b":st0001}