Noob question:
I need to use a string variable in the name of other variables. I thought of something like:
gen country="EU"
gen netexport_"country"=ex_"country" - im_"country"
It is just an example to illustrate my problem. A loop would be sub-optimal.
Related Posts with String variable in Do-file
Why low R2 in my random effects-model?Hi everyone. I have two questions, which I would be very thankful if you could help med with. I hav…
Methodological advice - obtaining panel data from census data: is it possible and how?I'd like to ask members of Statalist for methodological advice. I have found data on the spending w…
Equal slope t-testHello, I ran two seperate regressions on two portfolios. The regressors are the Fama/French Factors…
Problem with interpreting coefficients interaction termsDear all, I currently am stuck with a theoretical question, and was wondering whether any of you ma…
Multiple fixed effects for Binary outcomes model with Cross Sectional DataHello Statalist, I'm currently analyzing cross-section data of individual loans originated by 2 ban…
Subscribe to:
Post Comments (Atom)
0 Response to String variable in Do-file
Post a Comment