Re: [R] p-level in packages mgcv and gam

From: Denis Chabot <chabotd_at_globetrotter.net>
Date: Mon 03 Oct 2005 - 05:04:09 EST

Thank you very much Henric, now I see!

Denis
Le 05-10-02 à 11:47, Henric Nilsson a écrit :

> This test concerns only the non-linear part of the term s(Number,
> 3). In order to simultaneously test both the linear and non-linear
> part, as mgcv::summary.gam does, you'd
>
> > kyp1.1 <- gam(Kyphosis ~ 1, family=binomial, data=kyphosis)
> > anova(kyp1.1, kyp1, test = "Chisq")
> Analysis of Deviance Table
>
> Model 1: Kyphosis ~ 1
> Model 2: Kyphosis ~ s(Number, 3)
> Resid. Df Resid. Dev Df Deviance P(>|Chi|)
> 1 80.0000 83.234
> 2 76.9999 71.997 3.0001 11.237 0.011
>
>
> HTH,
> Henric
>
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Oct 03 05:13:53 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 18:09:17 EST