I have implemented a linear regression with intercept and without an intercept:
TotalReview ~ Number_of_files + LOC
With intercept, I get the below output where Number_of_files variable is significant:
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) -5.279e+02 1.114e+02 -4.740 0.00515 **
LOC 7.045e-04 2.260e-03 0.312 0.76778
Number_of_files 1.929e+00 6.026e-01 3.202 0.02395 *
Without Intercept, I get a very different output and LOC is suddenly significant:
Coefficients:
Estimate Std. Error t value Pr(>|t|)
Number_of_files -0.760434 0.433852 -1.753 0.1302
LOC 0.008528 0.003302 2.582 0.0416 *
Why does the significance of my variable change from Number_of_files to LOC after the intercept is removed?
