Hi all,
I am new to mata, but I think this issue can be solved by mata.
I am wondering how to swap rows (and columns) based on the names of the columns (and rows) in stata. For example, the e(b) matrix I get is shown in Impage 3.png. What I would like to achieve is to swap columns so that all the columns associated with equation 1 (equ1) precede all columns associated with equation 2 (equ2) etc. And for columns of a single equation, the variables are also in a particular order-cons, lnmp lnp1 lnp2 lnp3 lnp4 lnp5 lnp6.
I have already saved the result in result.ster (https://1drv.ms/u/s!An6r3b9xWElTl0ETiaVzoRzSJST2).
Thank you all in advance
I am new to mata, but I think this issue can be solved by mata.
I am wondering how to swap rows (and columns) based on the names of the columns (and rows) in stata. For example, the e(b) matrix I get is shown in Impage 3.png. What I would like to achieve is to swap columns so that all the columns associated with equation 1 (equ1) precede all columns associated with equation 2 (equ2) etc. And for columns of a single equation, the variables are also in a particular order-cons, lnmp lnp1 lnp2 lnp3 lnp4 lnp5 lnp6.
I have already saved the result in result.ster (https://1drv.ms/u/s!An6r3b9xWElTl0ETiaVzoRzSJST2).
Thank you all in advance
Comment