Learn R Programming

gets (version 0.1)

info.criterion: Computes the the value of an information criterion

Description

Given a log-likelihood, the number of observations and the number of 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
"sc", "aic", "aicc" or "hq"

Value

  • methodtype of information criterion
  • nnumber of observations
  • knumber of parameters
  • valuethe value on the information criterion