coef.fastVAR.SparseVAR: Coefficients of a SparseVAR model

Description Usage Arguments

View source: R/SparseVAR.R

Description

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

Usage

1
2
  ## S3 method for class 'fastVAR.SparseVAR'
 coef(sparseVAR, l1penalty)

Arguments

sparseVAR

an object of class fastVAR.SparseVAR

l1penalty

The l1 penalty to be applied to the SparseVAR model.


jeffwong/fastVAR documentation built on May 19, 2019, 4:02 a.m.