I might ask one of the stupidest questions but here is a problem that I've been struggling with for several hours...
I'd like to import some datasets of .dat file and found this wonderful work from NBER that uploaded the list of do-files and dictionary to import the .dat data files.
In the dofile, it seems that I have to have "dct" files saved in the directory:
Code:
local dat_name "$dir/l04puw1.dat" ** The following line should contain the path to your output '.dta' file local dta_name "$dir/stata/sippl04puw1.dta" ** The following line should contain the path to the data dictionary file local dct_name "$dir/dic/sippl04puw1.dct" ** The line below does NOT need to be changed quietly infile using "`dct_name'", using("`dat_name'") clear
0 Response to How can I create "dct" file to browse data of .dat format?
Post a Comment