Learn R Programming

bigstep (version 0.7.1)

aic: AIC

Description

Calculate AIC (Akaike Information Criterion).

Usage

aic(loglik, n, k)

Arguments

loglik
a numeric, the log-likelihood.
n
an integer > 0, a number of observations.
k
an integer >= 0, a number of selected variables.

Value

A number, a value of AIC.

Examples

Run this code
aic(loglik=10, n=100, k=5)

Run the code above in your browser using DataLab