Hi all,
I'm trying to iterate over two variables, with the names "category" and "month_created". The code is below. I'm getting the r(198) invalid name error and I'm not sure why. I'm a newbie to Stata and I've looked over all the documentation for foreach and local macros, but I can't find anything wrong. Any help would be appreciated!
foreach var of varlist category month_created {
tabulate 'var'
}
Related Posts with Invalid name in foreach loop
Readmission database - identify first case and all readmissionsAll, I've looked through the other topics regarding readmission and my question is slightly differe…
esttabDear Researchers, I am using the generalized DID model and the code is below: Code: xtreg perf i.Ev…
Which model to use? Panel Data Fixed-Effects ModelDear members! I am running a log-log model (almost all variables are in logs) with panel data of T=…
ppml_panel_sg : Ramsey RESET testHi, How can I evaluate the Ramsey RESET test if I am using the ppml_panel_sg estimator: ppml_panel…
marginsplot (interaction plot) change marker position or symbolsHello all, I would like to seek help in margins plot. I searched the forum but could not find the a…
Subscribe to:
Post Comments (Atom)
0 Response to Invalid name in foreach loop
Post a Comment