aic <-
function(model){
n <- df.residual(model) + length(variable.names(model))
log(sum(resid(model) ^ 2) / n) + (length(variable.names(model)) / n) * 2
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.