ssgetAIC#

Purpose#

Computes Akaike’s information criterion from loglikelihood.

Format#

aic = ssgetAIC(loglikelihood, df)#
Parameters:
  • loglikelihood (Scalar) – Loglikelihood value.

  • df (Scalar) – Degrees of freedom.

Returns:

aic (Scalar) – Computed Akaike’s information criterion

Examples#

// Loglikelihood value
ll = -38.3;

// Degrees of freedom
df_model = 2;

// Compute AIC
aic = ssgetAIC(ll, df_model);

The code above results in the following:

aic = 80.6

Source#

ssmain.src

See also

Functions ssgetAICC(), ssgetBIC(), ssgetHQIC()