The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » Unmet Need » Exposure to need for contraception (v625a) coding file
Exposure to need for contraception (v625a) coding file [message #22922] Thu, 03 June 2021 13:39 Go to next message
arjun is currently offline  arjun
Messages: 4
Registered: June 2021
Member
Hi! I am a research assistant currently trying to work with data on infecundity rates in Zambia. I noticed that the variable v626a, which gives unmet need for contraception, can be generated using the do-files linked here. However, I want to be able to generate v625a, exposure need to contraception. I would really appreciate any help finding do-files for that variable.

Thank you so much for your time!
Re: Exposure to need for contraception (v625a) coding file [message #22930 is a reply to message #22922] Sat, 05 June 2021 15:47 Go to previous messageGo to next message
Trevor-DHS is currently offline  Trevor-DHS
Messages: 803
Registered: January 2013
Senior Member
v625a is relatively simple to construct once you have run the unmet need code.
gen v625a = 0
replace v625a = 1 if v213==1
replace v625a = 2 if v625a==0 & pregppa24==1
replace v625a = 3 if v625a==0 & infec != 0
Re: Exposure to need for contraception (v625a) coding file [message #22935 is a reply to message #22930] Mon, 07 June 2021 12:21 Go to previous messageGo to next message
arjun is currently offline  arjun
Messages: 4
Registered: June 2021
Member
Thank you much for this quick and helpful response!
Re: Exposure to need for contraception (v625a) coding file [message #22950 is a reply to message #22930] Thu, 10 June 2021 10:20 Go to previous messageGo to next message
arjun is currently offline  arjun
Messages: 4
Registered: June 2021
Member
Just tried the code you suggested. Worked great. Thanks!

[Updated on: Thu, 10 June 2021 10:24]

Report message to a moderator

Re: Exposure to need for contraception (v625a) coding file [message #22951 is a reply to message #22950] Thu, 10 June 2021 10:26 Go to previous message
Trevor-DHS is currently offline  Trevor-DHS
Messages: 803
Registered: January 2013
Senior Member
It is in the revised unmet need code. Please re-read the code.
By the way, I recommend using the "Revised unmet need variable - survey specific coding" version of the code a this includes the survey-specific code needed, and should run for all surveys, whereas the general code does not handle any of the survey specific cases.
Previous Topic: Investigating infecund population
Next Topic: Response code as "In-consistence" be valuable to include in analysis ?
Goto Forum:
  


Current Time: Sat Nov 23 21:20:51 Coordinated Universal Time 2024