| glm.lld {KernGPLM} | R Documentation |
Computes first and second derivatives of the individual log-likelihood with respect to the linear predictor. (Currently only the LM as well as Logit and Probit are implemented.)
glm.lld(eta, y, family="gaussian", link="identity")
eta |
n x 1, linear predictors |
y |
n x 1, responses |
family |
text string (currently "gaussian", "bernoulli") |
link |
text string (currently "identity" for "gaussian", "logit" or "probit" for "bernoulli") |
List with components:
ll1 |
n x 1, vector of first derivatives |
ll2 |
n x 1, vector of second derivatives |
Marlene Mueller
glm.lld(c(-1,2), c(0,1), family="bernoulli", link="logit")