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
Storing marginal effects in a loop of regressionsI would like to run several regression via a foreach-loop, calculate marginal effects, store and com…
Assigning Date and Groups from Rolled Up (subtotaled) Header DataHello, I have a pretty simple data file that shows and ID variable and a integer variable for number…
Predict out of sample daily time seriesDear all I have data on the number of daily infections by COVID-19 and I would like to make predicti…
Is there a way to decrease the distance between bars in tabplot?Hello there any help would be greatly appreciated. My data looks something like this and I would be…
Generating a table for correlations obtained by groupHello, I would like to generate the correlations between two dependent variables for a large set of…
Subscribe to:
Post Comments (Atom)
0 Response to Reading fixed-format text files into STATA
Post a Comment