R/helper-functions.R

Defines functions BIC_pss AIC_pss

AIC_pss <- function(model){
    # maximized log-likelihood value of the model
    LLp <- stats::logLik(model)
    # number of freely estimated coefficients
    sp <- length(model$coefficients)
    c(LLp - sp)
}
BIC_pss <- function(model){
    # maximized log-likelihood value of the model
    LLp <- stats::logLik(model)
    # number of freely estimated coefficients
    sp <- length(model$coefficients)
    # number of observations
    TT <- log(stats::nobs(model))
    c(LLp - (sp/2)*TT)
}

Try the ARDL package in your browser

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

ARDL documentation built on May 10, 2026, 9:06 a.m.