derphiBY3:

Usage Arguments Examples

Usage

1
derphiBY3(s, y, c3)

Arguments

s
y
c3

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (s, y, c3) 
{
    Fs = exp(-(log(1 + exp(-abs(s))) + abs(s) * (s < 0)))
    ds = Fs * (1 - Fs)
    dev = log(1 + exp(-abs(s))) + abs(s) * ((y - 0.5) * s < 0)
    Gprim1 = log(1 + exp(-abs(s))) + abs(s) * (s < 0)
    Gprim2 = log(1 + exp(-abs(s))) + abs(s) * (s > 0)
    return(-psiBY3(dev, c3) * (y - Fs) + ((psiBY3(Gprim1, c3) - 
        psiBY3(Gprim2, c3)) * ds))
  }

musto101/wilcox_R documentation built on May 23, 2019, 10:52 a.m.