I have two hypotheses (A and B)
H0_A b1<=0; H1_A: b1 >0
H0_B b2>=0; H1_B: b2 <0
To estimate the coefficients b1 and b2 I ran a regression lm(y~x1+x2)
.
My question: how can I get the p-value for every coefficient (b1, b2), accodring to its hypothesis setting, to see if I can reject the null-hypothesis?
When I use the summary()
-function on the regression, the p-values are stated, but I think they only consider the case that the beta is unequal to zero.
Thank you very much!!