R/zero.R

Defines functions zero

Documented in zero

zero <- function(theta, truncate){
    id <- abs(theta) <= truncate
    theta[id] <- 0
    theta
}

Try the sglasso package in your browser

Any scripts or data that you put into this service are public.

sglasso documentation built on Sept. 22, 2022, 5:06 p.m.