Hi everyone!
I have been trying to tokenize locals that are produced by file read. However, weird thing happens with these locals.
For example, if I use the code
file open fh using "location/table.txt", read
file read fh line
di "`line'"
The result is:
VARIABLES logtotal_assets logfixed_assets logrevenue loglabor_costs logemployment
However, if I run:
foreach i in `line'{
di "`i'"
}
It returns the same result as di "`line'". I try to tokenize the local line but it also fails. It would be great if anyone has inside on this issue!
Thanks so much!
Related Posts with File read and tokenize locals
What fixed effects I should add when using triple difference in firm level?In my difference-in-difference setting (double diff), I examine the impact of anticorruption laws on…
What is the difference between "stack" and "pca" ?From my understanding, it seems that pca and stack syntaxes are all about suppressing two or more va…
Trying to open shapefile but Stata looks for .dbf fileHello, I am trying to open a shapefile under the name "pga.shp" that I downloaded from the US Geolo…
Is there any package for stacked event-by-event estimates ?I am reading a paper of Cengiz, 2019 about using stacked event-by-event estimates for the Difference…
Labels of restricted categories appearing in graph when using -by()-I want to graph tobacco use for couples in different value groups. While the values variable has 12 …
Subscribe to:
Post Comments (Atom)
0 Response to File read and tokenize locals
Post a Comment