R/BIC.siland.R

Defines functions BIC.siland

Documented in BIC.siland

BIC.siland<-function(object,...)
{
  N=length(object$fitted)
  loglik=object$loglik
  nparam=length(object$coefficients)

  if(object$family$family!="gaussian")
  BIC  =-2*loglik +nparam*log(N)
  else
  BIC=-2*loglik +(nparam+1)*log(N)

  cat(paste("BIC = ",signif(BIC,digits=6)))
  invisible(BIC)
}

Try the siland package in your browser

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

siland documentation built on March 31, 2023, 7:33 p.m.