I would like to create a local macro for an if-condition that already includes double quotation marks (" "). And I would like to ask how I may accomplish this without confusing Stata because of the multiple " " marks. To illustrate what I mean:
Code:
sysuse auto, clear regress price mpg if foreign == "Domestic":origin
Code:
if foreign == "Domestic":origin
It would be ideal if I can do something like
Code:
local ifcond = "if foreign == "Domestic":origin" regress price mpg `ifcond'
Thanks,
Junran
0 Response to Create local macro already with double quotataion marks
Post a Comment