Hi statalisters,
I want to use global macro's to refer to folder names, but ran into some unexpected behaviour when using them before the underscore "_" symbol.
Stata seems to ignore the macro that goes before the underscore.
*For example when i do this:
global year "2019"
global month "10"
di "$year_$month"
The console prints: "10" and ignores my call for year.
I want to get to "2019_10".
Could someone explain to me why the first macro gets ignored, and how i could solve it?
Thanks in advance!
Related Posts with Probem with using global macro in a string before an underscore
Moderation analysisHello all, I am currently writing my thesis and testing some hypotheses. With one of my hypotheses,…
Merging set of variablesHi! I'm working with my master thesis and struggling av bit with handling some of my variables in St…
VIF in a mode with dummies/fixed effectsDear Statalists, I have 3 questions on the use of VIF in a model with dummies or fixed effects. The …
Panel data analysisI am working on a dataset that you can find attached, which displays as dependent variable the votes…
IIA assumption test after conditinal logitHi, Is there any way to test IIA assumption following conditional logit(clogit)? Found it for mlogit…
Subscribe to:
Post Comments (Atom)
0 Response to Probem with using global macro in a string before an underscore
Post a Comment