Description Usage Arguments Value Examples
View source: R/Lasso-function.R
Soft thresholding calculation
1 | soft_thresh(x, b)
|
x |
a numeric vector |
b |
threshold values |
a numeric vector with the same length as x after soft thresholding
1 2 3 4 | set.seed(1)
x <- rnorm(5)
b <- 0.2
soft_thresh(x,b)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.