I'm working with some data and I used R to the a linear regression model
Y = aX + b.
The code I used was
What I got was
Estimate Std. Error t value Pr(>|t|) (Intercept) -0.3884045 0.0260232 -14.93 <2e-16 *** X 0.0062095 0.0004635 13.40 <2e-16 ***
What I want to test now is the null hypothesis
H0: a=0, that is, the case where the slope is zero.
I'm confused about how to do that. I tried using the offset parameter ( the idea was to subtract the 'a' coefficient found previously in the former fit ), but I'm not sure it is the correct way to test this hypothesis. What I did was:
and I got:
Estimate Std. Error t value Pr(>|t|) (Intercept) -3.884e-01 2.602e-02 -14.93 <2e-16 *** X -2.464e-08 4.635e-04 0.00 1
Is it right? Am I now supposed to reject H0 since the p-value found was 1?