Hi all,
I am using Stata18.
I have two separate regressors, X1 and X2. Hence, I want to run two separate equations, but both equations have the same dependent variable and controls.
In the below two equations, I want to test whether the coefficient on X1 in the first equation (call it B1) is statistically significantly different from the coefficient on X2 in the second equation (call it B2).
How can I achieve this? I presume it would involve seemingly unrelated regression, however I am quite unfamiliar with this estimation method.
I am using Stata18.
I have two separate regressors, X1 and X2. Hence, I want to run two separate equations, but both equations have the same dependent variable and controls.
In the below two equations, I want to test whether the coefficient on X1 in the first equation (call it B1) is statistically significantly different from the coefficient on X2 in the second equation (call it B2).
How can I achieve this? I presume it would involve seemingly unrelated regression, however I am quite unfamiliar with this estimation method.
Code:
reg Y X1 controls reg Y X2 controls
Code:
input float(Y X1) double X2 1 3.306991 4.719900320258221 1 1.4509706 5.033017157002235 1 1.420742 4.955461239756943 1 1.2662406 4.5469089910628275 1 1.2695993 4.476237999457594 1 1.3636436 4.483950194197082 1 1.309904 . 1 1.16212 4.281886680407543 1 1.0815105 3.6729566039140558 20 1.799189 5.822563431721446 37 1.4509706 5.033017157002235 42 1.323339 4.724373896730076 76 1.2662406 4.5469089910628275 64 1.3636436 4.483950194197082 34 1.0277709 . 0 .9874661 . 0 3.6635265 4.179483443697536 5 3.791261 4.468130536388181
Comment