I am trying to get a scalar from a matrix (vector). Within a multiple
equations framework (-mlogit-) I want to get one of the parameters
estimated. After running -mlogit- I tried the following:
mat B = e(b)
scalar s = B["y1","eq1:x1"]
The following error appears:
matrix operators that return matrices not allowed in this context
r(509);
However if I try one of the following, there is no error reported:
mat A = B["y1","eq1:x1"]
scalar s = B[1,1]
Using the rows and columns names of the matrix is important since these
scalars will be replaced into a second vector of estimated parameters.