Re: [R] AIC for GAM models

2012-08-23 Thread ritapatricio
Thank you for the clarification, indeed the default Gaussian distribution gives me identical results and AIC values for simple model comparison. Best, Rita -- View this message in context: http://r.789695.n4.nabble.com/AIC-for-GAM-models-tp4640972p4641101.html Sent from the R help mailing lis

Re: [R] AIC for GAM models

2012-08-22 Thread Rui Barradas
Hello, For gam, try model1$aic. The returned value is an object of class "gam" as described in ?gamObject. For gamm, try model$gam$aic. The returned value is a list of two objects, a "gam" and the return value of "lme" or "|gammPQL". See ?gam and ?gamm, the Value section. Hope this helps, Rui

[R] AIC for GAM models

2012-08-22 Thread ritapatricio
Dear all, I am analysing growth data - response variable - using GAM and GAMM models, and 4 covariates: mean size, mean capture year, growth interval, having tumors vs. not The models work fine, and fit the data well, however when I try to compare models using AIC I cannot get an AIC value. This