I'm trying to test whether the coefficient for one independent variable ($X_1$) is larger than coefficient for another variable ($X_2$) in predicting the dependent variable ($Y$). For example, my hypothesis states: The effect of $X_1$ on $Y$ is larger than the effect of $X_2$ on $Y$. In my regression analysis, it turns out that $X_1$ is significant while $X_2$ is not.
In this case, can I conclude that the effect of $X_1$ on $Y$ is larger that that of $X_2$? If I use the test command in Stata, the two effects are not statistically different. Is the test still meaningful when one variable is not significant? I look forward to your input.