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
Stratified Sampling into Equal Groups using Proportional Allocation with Odd and Even Observations in StratumHello, I have a dataset with 60 clusters that can be divided into 14 stratum. I would like to random…
S.E. in xtreg and aregDear friends, I'm estimating a fixed effects model with an unbalanced panel data using both areg an…
Averaging with a condition while generating a new variableHi there! I have household-level data with unique household_id. For each household, I have data for…
teffects nnmatch with no exact matchesHello everyone, I am trying to perform a nearest-neighbor matching in Stata by using the teffects c…
Dichotomous Independent variableHi I am working on the following data set and in order to determine my model, I have TOTALINVESTMEN…
Subscribe to:
Post Comments (Atom)
0 Response to File read and tokenize locals
Post a Comment