Values don't match with reported values/Antenatal care by medically trained professionals [message #15539] |
Thu, 09 August 2018 04:29 |
mahmudornob
Messages: 7 Registered: August 2018 Location: South Korea
|
Member |
|
|
Dear all,
I am a beginner in Stata (just started a couple of days ago), learning simple code. For practising, I am trying to mimic the table value of Bangladesh DHS Final Report 2014.
From table 9.1 Antenatal Care, we can see the total percentage of women taken cared by Nurse/midwife/paramedic is 3.3. However, when I use to following syntax (it seems childish), I got the value 3.48. Apart from antenatal care provided by Doctor, all the remaining variables showed little difference than the tabulated values.
can anybody help me to find out my mistakes?
Any help in this regard would be appreciated.
*********************************************
gen Doctor=.
replace Doctor=m2a_1
gen wgt=v005/1000000
tab Doctor [iweight=wgt]
gen NMFP=.
replace NMFP=1 if m2b_1==1 & m2a_1==0
replace NMFP=0 if m2b_1==0
gen wgt=v005/1000000
tab NMFP [iweight=w gt]
[Updated on: Thu, 09 August 2018 04:36] Report message to a moderator
|
|
|