Re: [R] Stepwise selection with qAIC and qBIC

2013-09-04 Thread Xochitl CORMON
Here is a solution I applied using qAIC and package bbmle so I share it for next ones. It is not really automatized as I need to read every results of the drop() test an enter manually the less significant variable but I guess a function can be created in this goal. nullQ <- update (null, fami

[R] Stepwise selection with qAIC and qBIC

2013-08-28 Thread Xochitl CORMON
Dear list, I am currently working with presence/absence GLM. Therefore I am using binomial family and selection my models this way : null <- glm(respvarPAT ~ 1 , family = binomial, data = datafit) full <- glm(respvarPAT ~ CSpp + FSpp + Gpp + Mpp + Ppp + Lpp + TempPoly2 + DepthPoly2 + DepthPo