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: 888
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 #29342 is a reply to message #28066] Sun, 02 June 2024 04:32 Go to previous messageGo to next message
andrewcarsten97 is currently offline  andrewcarsten97
Messages: 1
Registered: June 2024
Member
eceaydin wrote on Tue, 07 November 2023 10:53
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. download mp3
Yes I have same topic..
Re: Median Age at First Marriage Uganda [message #29600 is a reply to message #29342] Tue, 09 July 2024 08:09 Go to previous message
fanvber32 is currently offline  fanvber32
Messages: 2
Registered: July 2024
Member
It's possible that changes in data structure or syntax updates between years caused this issue. Check if variables names or formats differ in the 2011 survey compared to 2016.
Previous Topic: Region Variable v024 (Haiti)
Next Topic: Age Calculator Integration Software API Issue
Goto Forum:
  


Current Time: Sat Nov 23 10:46:02 Coordinated Universal Time 2024