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
Member

Hi!

From Program om fertility ( https://github.com/DHSProgram/DHS-Indicators-Stata/blob/mast er/Chap05_FE/FE_FERT.do)

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 ( https://github.com/DHSProgram/DHS-Indicators-Stata/blob/mast er/Chap05_FE/FE_FERT.do)

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.

Regards
Waqas Imran


Waqas Imran
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: Wed Nov 13 05:02:48 Coordinated Universal Time 2024