The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Fertility » PDHS 2017-18: MEDIAN AGE AT FIRST BIRTH (Github Library: Fertility Chapter)
PDHS 2017-18: MEDIAN AGE AT FIRST BIRTH [message #27245] Thu, 06 July 2023 06:26
waqas is currently offline  waqas
Messages: 35
Registered: June 2015
Location: Islamabad, Pakistan


From Program om fertility ( er/Chap05_FE/

Line220 local a= beg_age
Line221 local b= end_age
Line222 cap summarize age [fweight=weightvar] if agevar>= beg_age & agevar<= end_age & `y'==`x', detail

The above macro command lines are from "MEDIAN AGE AT FIRST BIRTH" section of stata program ( er/Chap05_FE/

The locals are understandable here. I need some explanation on reasoning behind this:

agevar>= beg_age & agevar<= end_age & `y'==`x'

What above logic is explaining, It will be helpfull for me if DHS experts would make me understand about above expression?

Timely response is supportive for moving our work ahead.

Waqas Imran

Waqas Imran
Read Message
Previous Topic: Years looks weird in 2022 Nepal DHS data
Next Topic: Using tfr2 to Calculate age specific marital fertility rate
Goto Forum:

Current Time: Tue Apr 23 07:09:08 Coordinated Universal Time 2024