Hi everyone,
I want to read multiple fixed format-text files for multiple years into Stata. I have already read this message, but it was too complicated for me to follow. Can anyone guide me how can I read 18 text files with the names as follows: state05, state06, state07, state08. ....state22. The data in the text file is arranged as follows:
city name 1-2 (left most two digits)
blanks 3-14
item code 15-17
amount 18-29
survey year 30-31
year of data 32-33
origin 34-35
Any advice would be highly appreciated.
Ijaz
Related Posts with Reading fixed-format text files into STATA
Beginner question, loop command for net returns, error code r(198) "`var' invalid name"Hi everyone, I have a time series set of monthly currency spot rates from multiple countries. I als…
Struggling to convert latitude and longitude to x and y coordinates (geo2xy)Hello I have a dataset of latitude and longitude points that I need to convert to X and Y coordinate…
Generate new variable from several variablesI have a survey dataset from several countries from a few time periods. Each country and period has …
Creating a table for many variablesHello everyone, I have a data which has a categorical variable (north/south) and about 10 variables …
Merging on the basis of Date for CRSP stocks dataHello, I am merging the CRSP stock prices dataset with the CRSP value-weighted index on the basis o…
Subscribe to:
Post Comments (Atom)
0 Response to Reading fixed-format text files into STATA
Post a Comment