Calculating for Infant Mortality Rate [message #517] |
Wed, 05 June 2013 21:23 |
e.macarayan@uq.edu.au
Messages: 1 Registered: May 2013 Location: Brisbane Queensland
|
Member |
|
|
Hi! I would like to compute for the IMR per province in the Philippines, but I am having trouble with the way it's supposed to be. Using the weights (gen weight = int(v005/1000000)) creates "0" IMR for some provinces. I wonder why this happens.
Can anyone help me? This is what I have done so far. Thanks so much! I'd surely appreciate.
//Birthdate
gen kdobyy = int((b3-1)/12) + 1900
sum kdobyy, detail
label variable kdobyy "child's year of birth"
gen kdobmm = b3 - ((kdobyy-1900)*12)
sum kdobmm, detail
label variable kdobmm "child's month of birth"
gen bdate = ym(kdobyy,kdobmm)
//Survey date
gen intyy = int((v008-1)/12) + 1900
sum intyy, detail
gen intmm = v008 - ((intyy-1900)*12)
sum intmm, detail
gen surveydate = ym(intyy,intmm)
//Age at measurement
gen kintageyy = intyy - kdobyy
sum kintageyy, detail
label variable kintage "child's age in years"
gen kagemm = kintageyy*12
sum kagemm, detail
label variable kagemm "child's age in months"
gen kintagemm = intmm - kdobmm
sum kintagemm, detail
label variable kintagemm "additional child's month age"
gen kage = kagemm + kintagemm
sum kage, detail
label variable kage "age of child in months at the time of interview"
**double check:
gen measureage = surveydate - bdate
//b5: Alive? 0 No 1 Yes
gen alive = b5 == 1
gen dead = b5 == 0
//b7: Age at death (months imputed)
gen agedeath = b7
//Covariates
ren v024 region
gen weight = int(v005/1000000)
egen strata = group(sprov), label
tab strata
svyset[pweight=weight],psu(sprov) strata(strata)
[Updated on: Wed, 05 June 2013 21:25] Report message to a moderator
|
|
|