Learn R Programming

lassoshooting (version 0.1.5-1.1)

softthresh: Soft Threshold

Description

Soft threshold

Usage

softthresh(x, t)

Arguments

x

value

t

threshold

Value

A numeric scalar

Details

Pass x through a soft threshold with parameter t.

Examples

Run this code
# NOT RUN {
  
# }
# NOT RUN {
    t <- 0.4
    plot(sapply(seq(-2,2,by=0.1),function (x) softthresh(x, t)),type='l')
  
# }

Run the code above in your browser using DataLab