The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Fertility » Teenage Pregnancy in BDHS 2017-18 (Replicate Teenage Pregnancy table 5.11)
Re: Teenage Pregnancy in BDHS 2017-18 [message #30015 is a reply to message #30013] Tue, 10 September 2024 14:25 Go to previous messageGo to previous message
toukir86 is currently offline  toukir86
Messages: 10
Registered: November 2023
Member
Thanks for your prompt reply; it worked out to generate 4782. However, when I use the DHS-provided code to generate the estimates of teenagers who have had a live birth, pregnancy with the first child, and have begun childbearing, the estimates do not match the report estimates. Where am I doing wrong?


//Teens (women age 15-19) who have had a live birth
*gen fe_teen_birth = v201 if v013==1
recode v201 (0=0 "No") (1/max=1 "Yes") if v013==1, gen(fe_teen_birth)
label var fe_teen_birth "Teens who have had a live birth"
//Teens (women age 15-19) pregnant with first child
gen fe_teen_preg = 0 if v013==1
replace fe_teen_preg = 1 if v201==0 & v213==1 & v013==1
label val fe_teen_preg yesnolabel
label var fe_teen_preg "Teens pregnant with first child"

//Teens (women age 15-19) who have begun childbearing
gen fe_teen_beg = 0 if v013==1
replace fe_teen_beg = 1 if (v201>0 | v213==1) & v013==1
label val fe_teen_beg yesnolabel
label var fe_teen_beg "Teens who have begun childbearing"


Also, can you let me know if I can use it to model the logistic regression model using the weight in the same way?


[Updated on: Tue, 10 September 2024 14:25]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Wanted Fertility Rate
Next Topic: Birth interval
Goto Forum:
  


Current Time: Sun Nov 24 17:28:45 Coordinated Universal Time 2024