Re: [R] Deviance explined in GAMM, library mgcv

2009-06-04 Thread nsc
Hi all, I have the same question for a GAMM with quasi-poisson errors. Does anyone know how to calculate the % deviance explained by a GAMM model or any other method evaluating the % contribution of the model in explaining the response variable (eg. number of birds in an area)? Thanks Nicole

[R] Deviance explined in GAMM, library mgcv

2009-05-27 Thread Berta Ibáñez
Dear R-users, To obtain the percentage of deviance explained when fitting a gam model using the mgcv library is straightforward: summary(object.gam) $dev.expl or alternatively, using the deviance (deviance(object.gam)) of the null and the fitted models, and then using 1 minus th