Soft: Internal soft-thresholding operator

View source: R/aftPenCDA.r

SoftR Documentation

Internal soft-thresholding operator

Description

Computes the soft-thresholding update used in SCAD, ALASSO, and LASSO penalties.

Usage

Soft(z, lambda)

Arguments

z

A numeric scalar or vector.

lambda

A nonnegative thresholding parameter.

Value

A numeric value (or vector) after soft-thresholding.


aftPenCDA documentation built on April 23, 2026, 9:11 a.m.