Learn R Programming

dafs (version 1.0-38)

fitPvalue: 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.

Value

A P-value

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.

See Also

summary.lm

Examples

Run this code
# NOT RUN {
x = runif(100,1,10)
y = 2 + 3*x + rnorm(100)
fit = lm(y~x)
fitPvalue(fit)
# }

Run the code above in your browser using DataLab