Dear all,
I need to test if the difference between a coefficient coming from a linear regression and a certain variable (which is in my dataset but which I do NOT use in my regression) is significantly different from zero.
I am not quite sure how to do it by using "lincom" or "test"
Assuming that the coefficient I’m interested in is the one of variable X1 and the variable included in my.dta (but NOT used in the regression) is X2, would it OK to right the test as follows:
lincom _coef[X1] - X2
I tried to do so, but it does not work (it shows an error: “X2 not found”)
Many thanks in advance
I need to test if the difference between a coefficient coming from a linear regression and a certain variable (which is in my dataset but which I do NOT use in my regression) is significantly different from zero.
I am not quite sure how to do it by using "lincom" or "test"
Assuming that the coefficient I’m interested in is the one of variable X1 and the variable included in my.dta (but NOT used in the regression) is X2, would it OK to right the test as follows:
lincom _coef[X1] - X2
I tried to do so, but it does not work (it shows an error: “X2 not found”)
Many thanks in advance
Comment