Dear,
I would like to generate a new variable whose name includes a global macro in the middle of strings. An example is aaa_$var_bbb where aaa and bbb are random strings, respectively. I already defined $var (let's say, mmm) in the previous step.
So, I would like to refer "aaa_mmm_bbb" by using aaa_$var_bbb. But when I type aaa_$var_bbb, stata thinks that there is a macro, var_bbb not var. How can I figure this out?
Best,
Jae
Related Posts with Global macro before strings
Question on stcompetDear Statalisters, I have a question on the command stcompet. I am considering the entry into a ma…
Is ~ a valid character in a variable name?-import delimited- and -insheet- create variable names with a tilde when the name in the first line …
Random (clustered) sampling without replacement keeping two strata population proportionsDear Statalist, My first post on this site so please bear with me for any 'mild' transgressions I m…
Problems with destring CIK numbersHi guys, In a dataset, I have rows with fyear (fiscal year) and CIK numbers, which are company iden…
new reshape issueSorry, this should be straightforward but I can't figure it out even after trying and using the manu…
Subscribe to:
Post Comments (Atom)
0 Response to Global macro before strings
Post a Comment