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")
The thresholded coefficient matrix.
Numeric matrix. The coefficient matrix to be thresholded.
Integer. The number of rows in the original data.
Integer. The number of variables (columns) in the original data.
Integer. The order of the VAR model.
Character. The type of threshold to apply; either "soft"
(default)
or "hard"
.