The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » General » Median Age at First Marriage Uganda
Median Age at First Marriage Uganda [message #28066] Tue, 07 November 2023 10:53 Go to next message
eceaydin is currently offline  eceaydin
Messages: 3
Registered: October 2023
Member
Hello,

I am looking at the KR file of 2011 survey for Uganda. By using the code on this website https://github.com/DHSProgram/DHS-Indicators-Stata/blob/mast er/Chap04_MS/MS_MAR.do I tried to create MAFM variabled based on education regions etc. When I tried to do this previously for the year 2016, it worked. But now it doesn't work. When it gets to line 67 of this code, it turns all the values into missing values. Why could this be? Any help is appreciated.
Re: Median Age at First Marriage Uganda [message #28131 is a reply to message #28066] Thu, 16 November 2023 14:32 Go to previous messageGo to next message
Janet-DHS is currently offline  Janet-DHS
Messages: 698
Registered: April 2022
Senior Member
Following is a response from DHS staff member, Tom Pullum:

Median age at first marriage is a characteristic of women and is calculated with the IR file. The KR file consists of children born in the past 5 years and is not used for this purpose. In the program, lines 67-78 calculate two scalars related to the integer ages that bracket the median age, prior to interpolation to get the fractional median age. For example, if the median age is 27.41, the two scalars will be 27 and 28. These lines are ok.

Please try the program again on the IR file and let us know if you get an error message.
Re: Median Age at First Marriage Uganda [message #28480 is a reply to message #28066] Tue, 16 January 2024 10:46 Go to previous message
allsodeann is currently offline  allsodeann
Messages: 1
Registered: January 2024
Member
I am looking at the KR file of 2011 survey for Uganda.
Markomojo.com

[Updated on: Wed, 17 January 2024 11:00]

Report message to a moderator

Previous Topic: DHS-VIII Recode Manual and Map
Next Topic: Work Experience Years Variable
Goto Forum:
  


Current Time: Sat Apr 27 18:26:56 Coordinated Universal Time 2024