I try to define a local list of strings, where some of the strings contain ampersands (&). Unfortunately, it seems the ampersand has unintendend consequences in this case. For example:
local firms "schauster & sons"
seems to define "schauster" and "sons" as seperate words instead of just one word. How can I avoid this?
Related Posts with Macros with strings and ampersands
prediction, unexpected resultsHi, I run a prediction by the first 20 sample (y and x), and I would like to use the results to pre…
Loop for many, same regressions with similar namesHello everyone, I am new to Stata and need your help. I can run the following simple regression with…
miest could not be openedDear Stata team, I'm trying to save miest file but i get the following error: [mi estimate,saving …
Can mecloglog be used for multi-failure outcomes in discrete-time survival analysis?Hello everyone, I'm running a data analysis to evaluate the association between a time-varying predi…
Random walk forecasting with rolling regression codeHello. If anyone can help me with STATA code, I would really appreciate it. I am very new to STATA a…
Subscribe to:
Post Comments (Atom)
0 Response to Macros with strings and ampersands
Post a Comment