I am writing to ask for help in the comparison between two coefficients within the same regression model.
The Context:
I have two variables (both binary), hj1_b[ and hj0_b whose coefficients I'd like to compare. My hypothesis is that the former is stronger than the latter in its effect on my dependent variable. To test this, I first run a regression as follows:
Across the three measurements, the results are as follows:

Upon seeing this result, I thought that my hypothesis was verified: the coefficient point estimates on hj1_b were much larger than those on hj0_b.
I then followed the procedure here to conduct a one-sided test https://www.stata.com/support/faqs/s...-coefficients/:
To my surprise, across the three DVs, the p-values of these T-tests were between 0.1 and 0.2, failing to support my hypothesis.
My First Question: Was the approach I used for testing my hypothesis correct? And was my interpretation (that I failed to reject the null hypothesis that they had similar effects on the DVs)?
My Second Question: If my interpretation was correct, I was confused. If I were to interpret from the results (as shown in the table above), I felt like my hypothesis was reasonable indirectly:
Thank you for your help in advance and I appreciate any suggestions/comments on my questions.
The Context:
I have two variables (both binary), hj1_b[ and hj0_b whose coefficients I'd like to compare. My hypothesis is that the former is stronger than the latter in its effect on my dependent variable. To test this, I first run a regression as follows:
Code:
reghdfe $Y hj0_b hj1_b $CTRL, absorb($FE) cluster($CLS) keepsing
Upon seeing this result, I thought that my hypothesis was verified: the coefficient point estimates on hj1_b were much larger than those on hj0_b.
I then followed the procedure here to conduct a one-sided test https://www.stata.com/support/faqs/s...-coefficients/:
Code:
test _b[hj1_b]-_b[hj0_b]=0 local sign_hj = sign(_b[hj1_b]-_b[hj0_b]) di `sign_hj' display "Ho: hj1 >= hj0 p-value = " ttail(r(df_r),`sign_hj'*sqrt(r(F)))
My First Question: Was the approach I used for testing my hypothesis correct? And was my interpretation (that I failed to reject the null hypothesis that they had similar effects on the DVs)?
My Second Question: If my interpretation was correct, I was confused. If I were to interpret from the results (as shown in the table above), I felt like my hypothesis was reasonable indirectly:
- There was a significant and positive effect of hj1_b on the DVs;
- There was little effect of hj0_b on the DVs;
Thank you for your help in advance and I appreciate any suggestions/comments on my questions.
Comment