Learn R Programming

gets (version 0.2)

info.criterion: Computes the Value of an Information Criterion

Description

Given a log-likelihood, the number of observations and the number of estimated parameters, the value of a chosen information criterion is computed

Usage

info.criterion(logl, n=NULL, k=NULL, method=c("sc", "aic", "aicc", "hq"))

Arguments

logl
numeric, the value of the log-likelihood
n
integer, number of observations
k
integer, number of parameters
method
character, either "sc" (default), "aic", "aicc" or "hq"

Value

  • a list with elements:
  • methodtype of information criterion
  • nnumber of observations
  • knumber of parameters
  • valuethe value on the information criterion