Re: [R] A hiccup when using anova on gam() fits.

2009-08-01 Thread Rolf Turner
Thank you. That clarified a great many things. cheers, Rolf ## Attention:\ This e-mail message is privileged and confid...{{dropped:9}} __ R-help@r-project.

Re: [R] A hiccup when using anova on gam() fits.

2009-07-29 Thread Martin Maechler
> "RT" == Rolf Turner > on Wed, 29 Jul 2009 11:57:20 +1200 writes: RT> I stumbled across a mild glitch when trying to compare the RT> result of gam() fitting with the result of lm() fitting. RT> The following code demonstrates the problem: RT> library(gam) hmm, you

[R] A hiccup when using anova on gam() fits.

2009-07-28 Thread Rolf Turner
I stumbled across a mild glitch when trying to compare the result of gam() fitting with the result of lm() fitting. The following code demonstrates the problem: library(gam) x <- rep(1:10,10) set.seed(42) y <- rnorm(100) fit1 <- lm(y~x) fit2 <- gam(y~lo(x)) fit3 <- lm(y~factor(x)) print(anova(f