R/AIC.DirichletRegModel.R

Defines functions BIC.DirichletRegModel nobs.DirichletRegModel AIC.DirichletRegModel

Documented in AIC.DirichletRegModel BIC.DirichletRegModel nobs.DirichletRegModel

AIC.DirichletRegModel <- function(object, ..., k = 2){
  - 2*object$logLik + k*object$npar
}

nobs.DirichletRegModel <- function(object, ...){
  sum(object$weights)
}

BIC.DirichletRegModel <- function(object, ...){
  - 2*object$logLik + log(nobs(object))*object$npar
}

Try the DirichletReg package in your browser

Any scripts or data that you put into this service are public.

DirichletReg documentation built on May 29, 2017, 7:09 p.m.