[R] AIC extract and comparison

Uwe Ligges ligges at statistik.tu-dortmund.de
Wed Apr 30 09:39:06 CEST 2008



Lisa wrote:
> Hi, I need to fit models and use AIC method to campare the best fitted model
> manually.
> 
> When i extract AIC by using extractAIC, it gave me the df and AIC values.
> Now the problem is, how can I compare the AIC values from two models?
> is there anyway to extract AIC with no df so that I can compare directly?
> Thank you!
> 
>> extractAIC(coxout)
> [1]    1.000 1723.038

extractAIC(coxout)[2]

Uwe



> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list