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

I am looking at the KR file of 2011 survey for Uganda. By using the code on this website er/Chap04_MS/ 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 message
Janet-DHS is currently offline  Janet-DHS
Messages: 568
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.
Previous Topic: How does increased investment help the Economy?
Next Topic: writePff_ExternalFile
Goto Forum:

Current Time: Sun Dec 10 06:15:21 Coordinated Universal Time 2023