View source: R/information_criteria.R
get_ic_vals.bigtime.VAR | R Documentation |
sparseVAR
The number of non-zero coefficients are taken as the degrees of freedom.
## S3 method for class 'bigtime.VAR'
get_ic_vals(mod, verbose = TRUE)
mod |
Model estimated using |
verbose |
Should information about the optimal selection be printed? |
Returns a list containing
ics |
Values of the ICs for all lambdas |
mins |
Which IC lead to the minimum (the row number) |
selected_lambdas |
Which lambdas were selected |
dat <- simVAR(periods = 200, k=2, p=5, decay = 0.01)
mod <- sparseVAR(Y=scale(dat$Y))
ics <- get_ic_vals(mod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.