Re: [R] AICc in MuMIn package

2014-06-27 Thread Kamil Bartoń
On 2014-06-27 11:00, r-help-requ...@r-project.org wrote: Date: Thu, 26 Jun 2014 15:12:08 +0200 > From: Carlos Bautista Le?n > To: r-help@r-project.org > Subject: [R] AICc in MuMIn package Hello, I am modelling in glmmADMB count data (I??m using a negative binomial distribution

[R] AICc in MuMIn package

2014-06-26 Thread Carlos Bautista León
Hello, I am modelling in glmmADMB count data (I´m using a negative binomial distribution to avoid possitive overdispersion) with four fixed and one random effect. I´m also using MuMIn package to calculate the AICc and also to model averaging using the function dredge. What I do not understand is

Re: [R] AICc function with gls

2011-09-04 Thread Renaud Lancelot
Also, gls1 was fitted with an REML method:you should use an ML method if you want to compute AIC and friends. R 2011/9/4 Roland Sookias > Just realized was because I had an object called AICc. > > On Sun, Sep 4, 2011 at 2:08 AM, Roland Sookias > wrote: > > > Hi > > > > I get the following erro

Re: [R] AICc function with gls

2011-09-03 Thread Roland Sookias
Just realized was because I had an object called AICc. On Sun, Sep 4, 2011 at 2:08 AM, Roland Sookias wrote: > Hi > > I get the following error when I try and get the AICc for a gls regression > using qpcR: > > > > AICc(gls1) > Loading required package: nlme > Error in n/(n - p - 1) : 'n' is mis

[R] AICc function with gls

2011-09-03 Thread Roland Sookias
Hi I get the following error when I try and get the AICc for a gls regression using qpcR: > AICc(gls1) Loading required package: nlme Error in n/(n - p - 1) : 'n' is missing My gls is like this: > gls1 Generalized least squares fit by REML Model: thercarnmax ~ therherbmax Data: NULL Log-

Re: [R] AICc

2009-04-30 Thread Ron Burns
Katie- I think you can calculate it easily in R using the definitions: AIC<- -2*LL + 2*K AICc<-AIC + 2*K*(K+1)/(n-K-1) where LL is the logLik, K is the the number of parameters in the fitted model, and n is the number of observation, so if you know AIC then it is easy to calculate AICc Ron

Re: [R] AICc

2009-04-29 Thread Ben Bolker
Katie Stumpf wrote: > > I am fitting logistic regression models, by defining my own link > function, and would like to get AICc values. Using the glm command > gives a value for AIC, but I haven't been able to get R to convert > that to AICc. Is there a code that has already been writte

[R] AICc

2009-04-29 Thread Katie Stumpf
I am fitting logistic regression models, by defining my own link function, and would like to get AICc values. Using the glm command gives a value for AIC, but I haven't been able to get R to convert that to AICc. Is there a code that has already been written for this? Right now I am just