Extraction of NSSO Data
The following post is basically designed for the understanding of extraction of NSSO Data.
It contains STATA codes for extraction of unit-level survey data from NSSO's 71st round on Health and Education consumption in the ASCII format given to users to .dta format of STATA.
The NSSO data is provided in ASCII format and is flat/line sequential, also called a fixed width file. The data is accompanied by an excel sheet with the details of the layout of the data. The entire dataset is provided in ten txt files covering eleven blocks of data.
To import any txt file into STATA, one has to first create a dictionary file (.dct) following the layout of the data, and then import it into STATA using the infix command through the dictionary file.
infix dictionary
{
-
-
-
-
-
-
}
infix using "<insert file path to dictionary file>", using ("<insert file path name to .txt file>")
It contains STATA codes for extraction of unit-level survey data from NSSO's 71st round on Health and Education consumption in the ASCII format given to users to .dta format of STATA.
About the NSSO data
To import any txt file into STATA, one has to first create a dictionary file (.dct) following the layout of the data, and then import it into STATA using the infix command through the dictionary file.
The STATA code for extraction:
{
-
-
-
-
-
-
}
infix using "<insert file path to dictionary file>", using ("<insert file path name to .txt file>")