Learn R Programming

bigstep (version 1.1.1)

aic: AIC

Description

Calculate AIC (Akaike Information Criterion).

Usage

aic(loglik, k)

Value

A number, a value of AIC.

Arguments

loglik

A numeric, the log-likelihood.

k

An integer >= 0, the number of selected variables.

Examples

Run this code
aic(10, 5)

Run the code above in your browser using DataLab