powered by
Calculate AIC (Akaike Information Criterion).
aic(loglik, k)
A numeric, the log-likelihood.
An integer >= 0, the number of selected variables.
A number, a value of AIC.
# NOT RUN { aic(10, 5) # }
Run the code above in your browser using DataLab