lmSignif compute the significance of the F statistics in a summary.lm object.

lmSignif(s)

Arguments

s

an object of class summary.lm (or a linear model of class lm that will get summarized)

Value

Overall significance of a linear model.

Examples

m <- lm(Sepal.Length~Sepal.Width, data=iris[iris$Species=='setosa',]) summary(m)
#> #> Call: #> lm(formula = Sepal.Length ~ Sepal.Width, data = iris[iris$Species == #> "setosa", ]) #> #> Residuals: #> Min 1Q Median 3Q Max #> -0.52476 -0.16286 0.02166 0.13833 0.44428 #> #> Coefficients: #> Estimate Std. Error t value Pr(>|t|) #> (Intercept) 2.6390 0.3100 8.513 3.74e-11 *** #> Sepal.Width 0.6905 0.0899 7.681 6.71e-10 *** #> --- #> Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 #> #> Residual standard error: 0.2385 on 48 degrees of freedom #> Multiple R-squared: 0.5514, Adjusted R-squared: 0.542 #> F-statistic: 58.99 on 1 and 48 DF, p-value: 6.71e-10 #>
lmSignif(summary(m))
#> value #> 6.709844e-10