Hi all,
I have a series of txt file stored in a folder.
I would love to do the following (ideally via loop):
1-Open each file
2-Create a variable with same name as the file title (so it will identify the file)
3-Stored all the files in dta within the folder.
Finally, I would love to append all dta file so to have a one single dataset.
Many thanks for any advice you might have!
Related Posts with Loop opening txt file and create a variable
How to save a matrix into stata data.Hello, I have the following dataset and I am using fect to estimate the ATT via interactive fixed ef…
XTHREG and Clustered Standard Error (with few Clusters)Hello everyone, I run a threshold regression following the Hansen(1999) paper and the code from Wan…
How to implement -xtdpdml- with interaction terms?Hi Statalist, In my paper I validate a theoretical proposition through the following FE regression:…
Store result from calculation to a matrix?Hi all! I'm trying to compute the jackknife variance estimate using the formula from Hansen's "Econo…
Twoway bar with 2 y-axesHi all, I'm trying to create a bar graph that shows how the numbers of procedures etc. required var…
Subscribe to:
Post Comments (Atom)
0 Response to Loop opening txt file and create a variable
Post a Comment