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.
> "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
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
3 matches
Mail list logo