testLoess: Significance Test for Loess vs. LM

testLoessR Documentation

Significance Test for Loess vs. LM

Description

Calculates an F test to evaluate significant differences between a LOESS model and a parametric alternative estimated with lm

Usage

testLoess(lmobj, loessobj, alpha = 0.05)

Arguments

lmobj

An object of class lm.

loessobj

An object of class loess.

alpha

Desired Type I error rate of test.

Value

Printed output describing the results of the test.

Author(s)

Dave Armstrong

Examples


data(Prestige, package="carData")
linmod <- lm(prestige ~ income, data=Prestige)
lomod <- loess(prestige ~ income, data=Prestige)
testLoess(linmod, lomod)


davidaarmstrong/damisc documentation built on Oct. 1, 2023, 3:05 p.m.