-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Bill Shipley
Sent: Friday, April 08, 2005 8:31 AM
To: R help list
Subject: [R] anova with gam?
Hello. In SPLUS I am used to comparing nested models in gam
using the anova function. When I tried this in R this
doesn't work (the error message says that anova() doesn't
recognise the gam fit). What must I do to use anova with
gam? To be clear, I want to do the following:
fFit1<-gam(y~x,.)
fit1<-fam(y~s(x),.)
anova(fit2,fit1,test="F")
Thanks.
Bill Shipley
[[alternative HTML version deleted]]