Skip to contents

Calculates the Akaike information criterion

Usage

calc_aic(loglik, df = 2)

Arguments

loglik

A vector or single number the loglikelihood of the model

df

A numeric specifying the degrees of freedom for the model in order to calculate the Akaike information criterion. Default is 2.

Value

A single or vector of numerics equal to the input vector length

Examples

calc_aic(loglik = -110)
#> [1] 224