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 #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: 3059
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;
 
Read Message
Read Message
Read Message
Previous Topic: children sample size NFHS-2 India
Next Topic: Constructing SLI variable in NFHS
Goto Forum:
  


Current Time: Tue May 14 09:22:11 Coordinated Universal Time 2024