powered by
sparseVAR
The number of non-zero coefficients are taken as the degrees of freedom.
# S3 method for bigtime.VAR get_ic_vals(mod, verbose = TRUE)
Returns a list containing
Values of the ICs for all lambdas
Which IC lead to the minimum (the row number)
Which lambdas were selected
Model estimated using sparseVAR
Should information about the optimal selection be printed?
dat <- simVAR(periods = 200, k=2, p=5, decay = 0.01) mod <- sparseVAR(Y=scale(dat$Y)) ics <- get_ic_vals(mod)
Run the code above in your browser using DataLab