| glm.ll {KernGPLM} | R Documentation |
Calculates the log-likelihood function of a GLM. (Currently only the LM as well as Logit and Probit are implemented.)
glm.ll(mu, y, phi=1, family="gaussian")
mu |
n x 1, predicted regression function |
y |
n x 1, responses |
phi |
scalar, nuisance parameter (sigma for "lm") |
family |
text string (currently "gaussian", "bernoulli") |
log-likelihood value
Marlene Mueller
glm.ll(rep(0.4,2), c(0,1), family="bernoulli")