Hello,
I'm writing a code and I need to name the matrix row names with the local created from levelsof applied to var1 (variable 1).
I already created the matrix using as reference a local (levels) using levelsof length.
I tried something simple as this
Stata returned this
However, I can display the local values with
I need to clarify that the values from `levels' are not numeric, they are strings.
Thanks for your help and time.
I'm writing a code and I need to name the matrix row names with the local created from levelsof applied to var1 (variable 1).
I already created the matrix using as reference a local (levels) using levelsof length.
I tried something simple as this
Code:
matrix rownames=`levels'
Code:
type mismatch
Code:
dis `levels'
0101 1005 2006 3008 4010 4132 4565 5567
Thanks for your help and time.
Last edited: