Skip to content
Prev 16184 / 398498 Next

Test if beta is different from something other than 0

"Moffet, Corey" <Corey.Moffet at ttu.edu> writes:
(Slightly unfortunate choice of variable names there.)

Say that y are responses and x the *predictor*:
Call:
lm(formula = y ~ x)

Residuals:
    Min      1Q  Median      3Q     Max 
-2.5600 -0.1918  0.2597  0.4870  1.1106 

Coefficients:
            Estimate Std. Error t value Pr(>|t|)    
(Intercept)  -0.3347     0.7225  -0.463    0.655    
x             1.0557     0.1164   9.067 1.76e-05 ***
---
Signif. codes:  0 `***' 0.001 `**' 0.01 `*' 0.05 `.' 0.1 ` ' 1 

Residual standard error: 1.058 on 8 degrees of freedom
Multiple R-Squared: 0.9113,     Adjusted R-squared: 0.9002 
F-statistic:  82.2 on 1 and 8 DF,  p-value: 1.755e-05
Call:
lm(formula = y - x ~ x)

Residuals:
    Min      1Q  Median      3Q     Max 
-2.5600 -0.1918  0.2597  0.4870  1.1106 

Coefficients:
            Estimate Std. Error t value Pr(>|t|)
(Intercept) -0.33475    0.72250  -0.463    0.655
x            0.05572    0.11644   0.478    0.645

Residual standard error: 1.058 on 8 degrees of freedom
Multiple R-Squared: 0.02782,    Adjusted R-squared: -0.0937 
F-statistic: 0.229 on 1 and 8 DF,  p-value: 0.6451