Description
Estimate VAR using ENET penalty
Usage
var_enet(data, p, lambdas, opt)
Value
A glmnet object containing the fitted model.
Arguments
- data
the data
- p
the order of the VAR
- lambdas
a vector containing the lambdas to be used in the fit
- opt
a list containing the options