R/BIC.VLMCX.R

Defines functions BIC.VLMCX BIC

Documented in BIC

BIC <- function(fit)UseMethod("BIC")

## computes the BIC of the model for the data in a VLMCX object using the count.param() and LogLik.VLMCX() functions

BIC.VLMCX <- function(fit)
{       
    k = count.param(fit$tree)
    
    result = -2*LogLik.VLMCX(fit) + log(length(fit$y))*k
  
  return(result)
}

Try the VLMCX package in your browser

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

VLMCX documentation built on May 29, 2024, 11:04 a.m.