View source: R/Scale_Logistic.R
1 |
beta.pos |
|
data.idxs |
|
factor |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ##---- 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 (beta.pos, data.idxs, factor = 1)
{
grad.log.pi <- lap.log.pi <- numeric(dimen)
for (i in 1:length(data.idxs)) {
datum.call <- datum.eval(beta.pos, data.idxs[i])
grad.log.pi <- grad.log.pi + datum.call$grad.log.pi
lap.log.pi <- lap.log.pi + datum.call$lap.log.pi
}
list(grad.log.pi = factor * grad.log.pi, lap.log.pi = factor *
lap.log.pi)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.