Please make sure you can reproduce my above example. Then try to create your own reproducible(!) example, that demonstrates the problem. You might be interested in dataex for this purpose.
Best
Daniel
Best
Daniel
foreach v of local vars { local label : subinstr local element "`id'" "" label variable `v' `"`label'"' }
foreach var of local varlist { local label : subinstr local element "`id'" "" label variable `var' `"`label'"' }
Comment