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
One specific year cannot be merged even though merging variables have the same values in master and using dataHi everyone, I am working with two panel datasets with which I am trying to perform a 1:1 merge. Ul…
Interaction terms to check if variables are interdependent?I have the potentially endogenous variables Loan size and the loan rate. Loan rate is my dependent v…
How to assign different Treatment depending on the date of birthHello, I have two different datasets, in the first one i have a ID identifier for each person and th…
generate new variable using egen with sum/countHello everyone, hope you all have a good day ahead. So i want to ask 1 question.. i have a data set…
Calculating media of several variables with missing dataGood afternoon, I like would to calculate the media of several variables with missing data. Code: …
Subscribe to:
Post Comments (Atom)
0 Response to Reading fixed-format text files into STATA
Post a Comment