fitPvalue: Return the P-value from an F-test for a linear model

View source: R/fitPvalue.R

fitPvalueR Documentation

Return the P-value from an F-test for a linear model

Description

This functions the P-value from the (null) hypothesis that all of the linear predictors are zero or not-significant.

Usage

fitPvalue(fit)

Arguments

fit

a lm object.

Details

summary returns an invisible vector called fstatistic that contains the F-statistic and the degrees of freedom used to test the hypothesis that all of the linear predictors are zero or not-significant. This function takes those values and returns the appropriate upper tail probability from the F-distribution.

Value

A P-value

Author(s)

James Curran

See Also

summary.lm

Examples

x = runif(100,1,10)
y = 2 + 3*x + rnorm(100)
fit = lm(y~x)
fitPvalue(fit)

dafs documentation built on April 11, 2022, 5:06 p.m.

Related to fitPvalue in dafs...