1 | derphiBY3(s, y, c3)
|
s |
|
y |
|
c3 |
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))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.