Description
Estimate VAR using SCAD penalty
Usage
var_scad(data, p, lambdas, opt, penalty)
Value
An ncvreg 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
- penalty
a string "SCAD" or something else