Hi all
I am trying to get label variable value using local and foreach, I did try with:
Also I try with var string, but not display properly:
I grateful any coments about this issue.
Thanks in advance
I am trying to get label variable value using local and foreach, I did try with:
Code:
sysuse auto.dta, clear levelsof foreign, local(levels) local label `v' = foreign foreach v of local levels { di `v' } 0 1
Code:
decode foreign, gen(foreign2) levelsof foreign2, local(levels) local label `v' = foreign2 foreach v of local levels { di `v' } Domestic not found
Thanks in advance
Comment