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) *
Code:
levelsof rep78, matrow(names) svmat names nam1 1 2 3 4 5
0 Response to Levelsof question
Post a Comment