Learn R Programming

gettingtothebottom (version 3.2)

softhreshold: MM Algorithm - Softhreshold Function

Description

softhreshold Function for computing the softhreshold

Usage

softhreshold(x, lambda)

Arguments

x
Vector of values to be softhresholded
lambda
Softhreshold parameter

Examples

Run this code
x <- seq(-10,10,1)
softhreshold(x,lambda=3)

Run the code above in your browser using DataLab