Hi,

I am trying to understand how levelsof works. - is it possible to use local labels as labels for the new variable when saving the estimates or combine with matrow somehow?

For example, suppose there is the variable rep78 already labeled
Code:
sysuse auto, clear
gen qual="poor" if rep78==1
replace qual="fair" if rep78==2
replace qual="average" if rep78==3
replace qual="good" if rep78==4
replace qual="excellent" if rep78==5
labmask rep78, values(qual)
*
So with matrow(names), I can save the values after estimation,

Code:
levelsof rep78, matrow(names)
svmat names

nam1
1
2
3
4
5
but is it possible to use levelsof qual, local(qual) to label the values of svmat names? Thank you