powered by
Format data to be used with compare_AIC(), compare_AICc() and compare_BIC(). Note that logLik is supposed to not be -logLik.
FormatCompareAIC(logLik, nobs, df)
The log likelihood
Number of observations
Number of parameters
An object to be used with compare_AIC()
FormatCompareAIC formats data to be used with compare_AIC()
Other AIC: ExtractAIC.glm(), compare_AICc(), compare_AIC(), compare_BIC()
ExtractAIC.glm()
compare_AICc()
compare_AIC()
compare_BIC()
# NOT RUN { ED <- FormatCompareAIC(logLik=-140, nobs=100, df=3) L <- FormatCompareAIC(logLik=-145, nobs=100, df=4) compare_AIC(L=L, ED=ED) compare_AICc(L=L, ED=ED) compare_BIC(L=L, ED=ED) # }
Run the code above in your browser using DataLab