sSolver {isotone} | R Documentation |
Negative Poisson Log-Likelihood
Description
Solver for the negative Poisson log-likelihood
Usage
sSolver(z, a, extra)
Arguments
z |
Vector containing observed response |
a |
Matrix with active constraints |
extra |
List with element y containing the observed response vector |
Details
This function is called internally in activeSet
by setting mySolver = sSolver
.
Value
x |
Vector containing the fitted values |
lbd |
Vector with Lagrange multipliers |
f |
Value of the target function |
gx |
Gradient at point x |
See Also
activeSet
Examples
##Minimizing Poisson log-liklihood
set.seed(123)
z <- 9:1 ##predictor values
y <- sample(1:100, 9) ##response values
btota <- cbind(1:8, 2:9) ##Matrix defining isotonicity (total order)
fit.poiss <- activeSet(z, btota, sSolver, y = y)
[Package
isotone version 0.8-1
Index]