I have the following variables
storage display value
variable name type format label variable label
--------------------------------------------------------------------------------
b1 byte %8.0g month of birth
b2 int %8.0g year of birth
b3 int %8.0g date of birth (cmc)
b4 byte %8.0g LABL sex of child
b5 byte %8.0g LABN child is alive
b6 int %8.0g b6 age at death
b7 int %8.0g age at death (months-imputed)
b8 byte %8.0g current age of child
b9 byte %8.0g b9 child lives with whom
b10 byte %8.0g LABB completeness of information
b11 int %8.0g preceding birth interval
b12 int %8.0g succeeding birth interval
b13 byte %8.0g b13 flag for age at death
b15 byte %8.0g LABN live birth between births
b16 byte %8.0g b16 child's line number in household
any one please how I can compute the neonatal Mortality, Infant mortality and Child mortality as a dummy variable taking value 1 if the child dies within the specified period and 0 otherwise.
{res}
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input byte b1 int(b2 b3) byte(b4 b5) int(b6 b7) byte(b8 b9 b10) int(b11 b12) byte(b13 b15 b16) 10 1994 1138 1 1 . . 12 0 1 11 . . 0 5 11 1993 1127 1 0 100 0 . . 5 62 11 0 0 . 9 1988 1065 2 1 . . 18 0 1 25 62 . 0 4 8 1986 1040 2 1 . . 20 0 1 16 25 . 0 3 4 1985 1024 2 1 . . 21 4 1 10 16 . 0 0 6 1984 1014 1 0 100 0 . . 5 12 10 0 0 . 6 1983 1002 1 0 100 0 . . 5 13 12 0 0 . 5 1982 989 2 1 . . 24 4 1 . 13 . 0 0 9 2001 1221 2 1 . . 5 0 1 105 . . 0 2 12 1992 1116 1 0 105 0 . . 1 156 105 0 0 . end label values b4 LABL label def LABL 1 "male", modify label def LABL 2 "female", modify label values b5 LABN label values b15 LABN label def LABN 0 "no", modify label def LABN 1 "yes", modify label values b6 b6 label def b6 100 "0 days", modify label values b9 b9 label def b9 0 "respondent", modify label def b9 4 "lives elsewhere", modify label values b10 LABB label def LABB 1 "month and year", modify label def LABB 5 "year - a, m imp", modify label values b13 b13 label def b13 0 "no flag", modify label values b16 b16 label def b16 0 "not listed in household", modify
0 Response to Dummy variable for neonatal Mortality, Infant mortality and Child mortality
Post a Comment