Dear Stata Users,
Maybe somebody can help me out with this. After a regression, I want to calculate a specific term with the estimated parameters, using matrices. I know I can write, for example:
Now I want to multiply matrix A and matrix B, and obtain the standard deviation of the result. I tried the Delta method with
, but this yields the error message "matrix operators that return matrices not allowed in this context". I know I could type
and then extract the result with
, but how can I obtain the associated standard deviation then?
Thank you very much in advance, your help is highly appreciated.
Kind regards
Stefan
Maybe somebody can help me out with this. After a regression, I want to calculate a specific term with the estimated parameters, using matrices. I know I can write, for example:
Code:
matrix A = (_b[est1]*_b[est2] \ _b[est3] + _b[est4]) matrix B = (_b[est5], _b[est6])
Code:
nlcom A * B
Code:
matrix AB = A*B
Code:
scalar AtimesB = AB[1,1]
Thank you very much in advance, your help is highly appreciated.
Kind regards
Stefan
Comment