R/gdina_mstep_mono_constraints_penalty.R

Defines functions gdina_mstep_mono_constraints_penalty

## File Name: gdina_mstep_mono_constraints_penalty.R
## File Version: 0.06

gdina_mstep_mono_constraints_penalty <- function(x)
{
    eps <- 1e-3
    # y <- ifelse( x < 0, x^2, 0 )
    y <- ifelse( x < 0, sqrt(x^2+eps), 0 )
    return(y)
}

Try the CDM package in your browser

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

CDM documentation built on Aug. 25, 2022, 5:08 p.m.