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
Why low R2 in my random effects-model?Hi everyone. I have two questions, which I would be very thankful if you could help med with. I hav…
Methodological advice - obtaining panel data from census data: is it possible and how?I'd like to ask members of Statalist for methodological advice. I have found data on the spending w…
Problem with interpreting coefficients interaction termsDear all, I currently am stuck with a theoretical question, and was wondering whether any of you ma…
Multiple fixed effects for Binary outcomes model with Cross Sectional DataHello Statalist, I'm currently analyzing cross-section data of individual loans originated by 2 ban…
Equal slope t-testHello, I ran two seperate regressions on two portfolios. The regressors are the Fama/French Factors…
Subscribe to:
Post Comments (Atom)
0 Response to Invalid name in foreach loop
Post a Comment