IC | R Documentation |
Compute Information Criteria
IC(logL, K, n = NULL, method = c("AICc", "AIC", "BIC"))
logL |
log-likelihood |
K |
number of parameters |
n |
sample size |
method |
either "AIC", "AICc", or "BIC" |
the value of the specified information criterion
This function is used internally by the model-fitting functions. It will not generally be called directly by the user.
ic1 <- IC(logL = 0, K = 2, method = "AIC") # plain AIC
ic2 <- IC(logL = 0, K = 2, n = 10, method = "AICc")
ic3 <- IC(logL = 0, K = 2, n = 1000, method = "AICc") # converges to AIC with increasing n
print(rbind(ic1, ic2, ic3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.