Learn R Programming

GARCH.X (version 1.0)

BIC: BIC for GARCHX model

Description

Calculates the Bayesian Information Criterion of the GARCHX model

Usage

BIC(model)

Value

BIC of GARCHX model

Arguments

model

GARCHX object

Examples

Run this code
set.seed(123)
pi <- c(1, 0, 0, 4)
n <- 2000
d <- length(pi)
valinit <- 100
n2 <- n + d + 1
omega <- 0.1
alpha <- 0.2
beta <- 0.3
delta <- 2
e<-rnorm(n2+valinit)
Y<-e
for (t in 2:n2)
 Y[t]<- 0.2*Y[t-1]+e[t]
x<-exp(Y)
X <- matrix(0, nrow = (n+valinit), ncol = length(pi))
for(j in 1:d)
 X[, j] <- x[(d+2-j):(n+d+1-j+valinit)]
data <- GARCH.X::simulate(n, omega, alpha, beta, delta, X, pi, valinit = valinit)
model <- GARCHX_select(eps = data$eps, X = data$X)
BIC_value <- BIC(model)

Run the code above in your browser using DataLab