lmP.f: functions to extract P fit diagnostics from an lm object

Description Usage Arguments Value Examples

View source: R/model.object.helper.functions.r

Description

Calculated the p value from a linear model fit (ANOVA F-test)

Usage

1
lmP.f(lm.fit.object)

Arguments

lm.fit.object

a linear model fit objects

Value

The p value

Examples

1
2
3
4
5
fake.data= data.frame(x=1:100, y=.05*(1:100)^2 - 5*(1:100) + 2 + rnorm(100,0,5)) #fit a linear to quadratic just for the hell of it
plot(fake.data)
lm.fit.object= lm(y~ x, data=fake.data)
lines(1:100,predict(lm.fit.object))
lmP.f(lm.fit.object=lm.fit.object)

duplisea/ddhelper documentation built on Nov. 4, 2019, 11:04 a.m.