Tell me more ×
Cross Validated is a question and answer site for statisticians, data analysts, data miners and data visualization experts. It's 100% free, no registration required.

I am fitting a conditional logistic regression model with 1:4 controls using R. I wish to obtain AIC from the model. How can I extract the appropriate parameters based on object m?

library(survival)
m<-clogit(cc~exp+ factor1+ factor2 + strata(stratum),data=data1)

Thank you for your help.

share|improve this question

1 Answer

It seems you must do it manually, so something like this:

2*length(m$coefficients)-2*(m$loglik[2])
share|improve this answer
I will try that. Many thanks – user2264 Dec 20 '10 at 13:03
4  
extractAIC() seems to work too (e.g., extractAIC(m)[2]). – chl Dec 20 '10 at 14:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.