The underlying library, glmnet, computes the full path to the lasso. This means it is computationally easy to compute the lasso solution for any penalty term. This function allows you to pass in the desired l1 penalty and will return the coefficients
1 2 | ## S3 method for class 'fastVAR.SparseVARX'
coef(sparseVARX, l1penalty)
|
sparseVARX |
an object of class fastVAR.SparseVARX |
l1penalty |
The l1 penalty to be applied to the SparseVARX model. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.