Hi,
Is there any way of extracting specific information from a matrix. For example:
Until now this is fine. But is there any way to extract only 1st, 3rd and 5th elements of first row rather using a range?
Thanks.
Is there any way of extracting specific information from a matrix. For example:
Code:
sysuse auto, clear
qui reg price mpg weight
mat m =r(table)'
mat li m
m[3,9]
b se t pvalue ll ul df crit eform
mpg -49.512221 86.156039 -.57468079 .56732373 -221.30248 122.27804 71 1.9939434 0
weight 1.7465592 .64135379 2.7232382 .00812981 .46773602 3.0253823 71 1.9939434 0
_cons 1946.0687 3597.0496 .54101802 .59018863 -5226.2445 9118.3819 71 1.9939434 0
mat myelement = m[1, 1 .. 3]
mat li myelement
myelement[1,3]
b se t
mpg -49.512221 86.156039 -.57468079
Thanks.

Comment