R/modelcomparison.R

# AIC and BIC scores.
# 
# Author: benderc
###############################################################################


get.aic <- function(phi,L) {
	k <- length(which(phi!=0))
	aic <- 2*k - 2*L
	aic
}
get.bic <- function(phi,L,n) {
	k <- length(which(phi!=0))
	bic <- -2*L + k*log2(n)
	bic
}

Try the ddepn package in your browser

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

ddepn documentation built on May 2, 2019, 4:42 p.m.