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
2SLS For BeginnersI am would love some help understanding how to run a 2SLS. I am replicating a table and first ran an…
Export matrix to Word with asdocx after the predict commandProf River Huang asked the following question Dear Attaullah, Is it possible to put the results …
Comparing population and sample age and sex distributionHi all, I am not so sure if my logic for the code is right or wrong. I have to check if the age and…
Negative scale value using fixed effects quantile regression xtqregI have individual-level panel wealth-at-age data with 4600 observations on 350 individuals. Because …
Can the attenuation bias of a demeaned dependent variable be solved by an control function approach?I recently demeaned my dependent variable by a group interaction. Mainly because simply adding them …
Subscribe to:
Post Comments (Atom)
0 Response to Invalid name in foreach loop
Post a Comment