View source: R/main_function.R
applyThreshold | R Documentation |
Applies a thresholding rule to a coefficient matrix by setting entries below a certain threshold to zero. Two types of thresholding are available: "soft" and "hard".
applyThreshold(a_mat, nr, nc, p, type = "soft")
a_mat |
Numeric matrix. The coefficient matrix to be thresholded. |
nr |
Integer. The number of rows in the original data. |
nc |
Integer. The number of variables (columns) in the original data. |
p |
Integer. The order of the VAR model. |
type |
Character. The type of threshold to apply; either |
The thresholded coefficient matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.