Dear all,
I am writing a small program where I create temporary variables and use them in regression commands. However, when I access the information stored e.g. in r(table), the variable is called as the temporary name, i.e. _00000X.
Consider the following example:
Best,
Korbinian
I am writing a small program where I create temporary variables and use them in regression commands. However, when I access the information stored e.g. in r(table), the variable is called as the temporary name, i.e. _00000X.
Consider the following example:
tempvar var1 var2
gen `var1' = ....
gen `var2' = ....
reg `var' `var2'
mat A = r(table)
mat list AHow can I automatically change the columnnames of the matrix A so that the first column is called var2 instead of something like _0000X?
Best,
Korbinian
Comment