R/BIC.dglars.R

Defines functions BIC.dglars

Documented in BIC.dglars

BIC.dglars <- function(object, ...){
    arg <- names(list(...))
    if("k" %in% arg) out_aic <- AIC(object, ...)
    else{
        logn <- log(dim(object$X)[1L])
        out_aic <- AIC(object, k = logn, ...)
        out_aic$type <- "BIC"
    }
    out_aic
}

Try the dglars package in your browser

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

dglars documentation built on Oct. 10, 2023, 1:08 a.m.