fitPvalue {dafs} | R 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 |
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
Examples
x = runif(100,1,10)
y = 2 + 3*x + rnorm(100)
fit = lm(y~x)
fitPvalue(fit)
[Package dafs version 1.0-38 Index]