I am not very familiar with the matrix in Stata. I just have a simple question below.
Code:
version 15.1
sysuse auto.dta, clear
reg price i.foreign
mat m = r(table)
mat m = m[1..2, 2..3]'
mat list m
b se
1.foreign 312.25874 754.44884
_cons 6072.4231 411.36305| foreign _coefficient |
|
| foreign_se | |
| constant _coefficient |
|
| constant_se |

0 Response to How to extract element of a matrix and put it to new rows of this matrix
Post a Comment