testLoess | R Documentation |
Calculates an F test to evaluate significant differences between a LOESS
model and a parametric alternative estimated with lm
testLoess(lmobj, loessobj, alpha = 0.05)
lmobj |
An object of class |
loessobj |
An object of class |
alpha |
Desired Type I error rate of test. |
Printed output describing the results of the test.
Dave Armstrong
data(Prestige, package="carData")
linmod <- lm(prestige ~ income, data=Prestige)
lomod <- loess(prestige ~ income, data=Prestige)
testLoess(linmod, lomod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.