The DHS Program User Forum - RDF feed
https://userforum.dhsprogram.com/index.php
Creating year dummy for TDHS for 2010, 2004 and 1996
https://userforum.dhsprogram.com/index.phpindex.php?t=rview&goto=4252&th=2093#msg_4252
I want to use three round of data set Tanzania Demographic Health Survey for 2010, 2004 and 1996 to investigate the effects of fertility on the health of mothers and children in Tanzania. I want to understand how can somebody create a year dummy and be able to pool these surveys for Tanzania.
Any help?]]>Robert2015-04-25T11:04:32-00:00Re: Creating year dummy for TDHS for 2010, 2004 and 1996
https://userforum.dhsprogram.com/index.phpindex.php?t=rview&goto=4294&th=2093#msg_4294
gen year=1996
Alternatively after pooling you can use:
gen year = 0
replace year = 1996 if v007 = 96
replace year = 2004 if v007 = 2004 | v007 = 2005
replace year = 2010 if v007 = 2009 | v007 = 2010