The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Countries » India » Re: SAS datasets in NFHS data
Re: SAS datasets in NFHS data [message #1093] Mon, 06 January 2014 04:21 Go to next message
anilgvdbm is currently offline  anilgvdbm
Messages: 11
Registered: December 2013
Location: India
Member

]Dear All,
Is anybody using SAS datasets of NFHS data please let me know how to convert the SAS 6th version files to 9th version files. and also if you have any Idea about the repeating variables please share that information.

Thanks and Best Regards,
Anil


Anil
Scientific officer
Re: SAS datasets in NFHS data [message #1095 is a reply to message #1093] Mon, 06 January 2014 12:06 Go to previous messageGo to next message
Reduced-For(u)m
Messages: 292
Registered: March 2013
Senior Member
I think the program StatTransfer will change the SAS formats for you, but it costs a couple hundred dollars (if you don't know anyone who has it).

My understanding of (guess at is probably closer) the repeated variables is that it was a choice the DHS made during recoding so that certain variables would always be part of certain sections. Different recodes contain different modules of information, and sometimes those modules require the same information. It is also the case that sometimes the definition changes very slightly from one variable to another as was discussed in relation to rural/urban/town*. Is there a particular variable you were worried about? A first step would just be to see if the variable has exactly the same value for all observations, in which case it wouldn't matter which one you used.

*see http://userforum.measuredhs.com/index.php?t=tree&th=60&a mp;goto=1001&S=03ecac4273cad0ea824286858fa659c9#msg_1001
Re: SAS datasets in NFHS data [message #4067 is a reply to message #1093] Wed, 25 March 2015 14:40 Go to previous message
Bridgette-DHS is currently offline  Bridgette-DHS
Messages: 3190
Registered: February 2013
Senior Member
Dear Data User,

Following is an example for converting .SD2 to version 9. All you need to do is modify the path to yours, and change the file names where necesssary. Be sure to create two libnames, one for the version 6 file, and one for the version 9 file. After running it, run the a quick one variable frequency to check the data. Your version 9 data is called "newdata" in this example.

I hope this helps - Bridgette-DHS


libname dhs6 v6 'C:\Countries\India6\';
libname dhs9 'c:\countries\India9\';
data 'c:\countries\dr9\newdata' ;
set dhs6.iakr52fl;
run;

proc freq data=dhs9.newdata;
tables v015:;
run;
Previous Topic: children sample size NFHS-2 India
Next Topic: Constructing SLI variable in NFHS
Goto Forum:
  


Current Time: Mon Nov 11 06:04:12 Coordinated Universal Time 2024