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
Master thesis - multiple excel sheets and make a dataset to be one variableHi! Im doing my master thesis and im not that good at STATA so I really need some help to begin! I …
Filling in Missing YearsHi Statalist, I'm trying to fill in missing years for my dataset, but something is off. The origina…
putdocx with multi-level modelsIs there a way to export the both the coefficient table as well as the random-effects parameters tab…
STATA can't handle TOEPLITZ 1 (MDEPENDENT(1)) and AR(1) when bootstrapping mixed modelsTOEPLITZ 1 (MDEPENDENT(1)) bootstrap, reps(20) seed(1) saving(mdep1test): mixed Pain i.RANDOM W W2 …
deleted observations when adding new variables in GMMI am using the xtabond2 command for panel data of country over time to measure the impact of outward…
Subscribe to:
Post Comments (Atom)
0 Response to Invalid name in foreach loop
Post a Comment