Learn R Programming

DBModelSelect (version 0.2.0)

AICc: Corrected AIC for linear models

Description

Calculates corrected AIC for an `lm` linear model object.

Usage

AICc(model)

Value

The numeric value of of corrected AIC for the supplied linear model object.

Arguments

model

A fitted `lm` object.

Examples

Run this code
#generate data
set.seed(9122023)
data <- data.frame(x = rnorm(100), y = rnorm(100))
AICc(lm(y~x, data = data))

Run the code above in your browser using DataLab