Hi, My question is about row names in matrix. Below are my code and its output.
As we know that, there are value labels for foreign, "Domestic" and "Foreign"
So, my question is that how can I extract the value label of "foreign" and assign that values labels to the matrix I made above as the row name of this matrix?
Thanks a lot!
Code:
version 15.1 sysuse auto.dta, clear reg price i.foreign, robust mat b = r(table) mat b = b[1..2, 2..3]' mat colnames b = "Car type" "Car type se" mat list b Car type Car type se 1.foreign 312.25874 701.78135 _cons 6072.4231 431.20837
As we know that, there are value labels for foreign, "Domestic" and "Foreign"
Code:
tabulation: Freq. Numeric Label 52 0 Domestic 22 1 Foreign
So, my question is that how can I extract the value label of "foreign" and assign that values labels to the matrix I made above as the row name of this matrix?
Thanks a lot!
Comment