SwainD@dfo-mpo.gc.ca
2005-Apr-13 18:31 UTC
[R] GAMM in mgcv - significance of smooth terms
In the summary of the gam object produced by gamm, the "Approximate significance of smooth terms" appears to be a test of the improvement in fit over a linear model, rather than a test of the significance of the overall effect of x on y: test.gamm<-gamm(y~te(x, bs="cr"), random=list(grp=~1)) summary(test.gamm$gam) . . . Approximate significance of smooth terms: edf chi.sq p-value te(x) 3.691 11.597 0.017802 Is my interpretation of this correct? If so, is it possible to calculate a test of the overall effect of x from the information saved for a gamm object? Thanks, Doug Swain
Apparently Analagous Threads
- gamm (mgcv) interaction with linear term
- mgcv::gamm error when combining random smooths and correlation/autoregressive term
- mgcv, testing gamm vs lme, which degrees of freedom?
- Poisson and negbin gamm in mgcv - overdispersion and theta
- Deviance explined in GAMM, library mgcv