The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » Bangladesh » Calculating the current use of contraceptive by age group
Calculating the current use of contraceptive by age group [message #1665] Tue, 25 March 2014 12:29 Go to previous message
sha_016 is currently offline  sha_016
Messages: 4
Registered: March 2014
Location: Antwerp, Belgium
Member

Dear Concern
I am analyzing the DHS-2007 data set for Bangladesh to see the current use of contraceptive by age group. A table of this information is already in the BDHS-2007 report. I was trying to compare the results of the report with the results I come up from the data set.
I found dissimilarity between BDHS-2007 report with my results. I am not sure whether I made the correct commands or not?
Here are the commands I followed:
gen strataid = v022
gen psu = v021
gen weight = v005/1000000
svyset psu (pw=weight), strata (strataid)
gen agegr= v012
recode agegr (15/19=1) (20/24=2) (25/29=3) (30/34=4) (35/39=5) (40/44=6) (45/49=7)
svy linearized, subpop(if v213==0) : proportion v312, stdize(weight) stdweight(v005) over (agegr)
After running these commands I got a table and results of this table is not the same with the BDHS-2007 report.
Could you please tell me about my possible errors or the correct ways of doing this?
Looking forward to hearing from you,
Thank you,
Shahab
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Child Nutrition data set
Next Topic: looking for appropriate variable
Goto Forum:
  


Current Time: Sun Apr 28 02:15:31 Coordinated Universal Time 2024