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.20837As we know that, there are value labels for foreign, "Domestic" and "Foreign"
Code:
            tabulation:  Freq.   Numeric  Label
                            52         0  Domestic
                            22         1  ForeignSo, 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!
0 Response to Question On Extracting Value Label and assign them as the column name of coefficient matrix
Post a Comment