Learn R Programming

bigstep (version 1.0.2)

aic: AIC

Description

Calculate AIC (Akaike Information Criterion).

Usage

aic(loglik, k)

Arguments

loglik

A numeric, the log-likelihood.

k

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

Value

A number, a value of AIC.

Examples

Run this code
# NOT RUN {
aic(10, 5)
# }

Run the code above in your browser using DataLab