glm.ll {KernGPLM}R Documentation

Log-likelihood for GLM

Description

Calculates the log-likelihood function of a GLM. (Currently only the LM as well as Logit and Probit are implemented.)

Usage

glm.ll(mu, y, phi=1, family="gaussian")

Arguments

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")

Value

log-likelihood value

Author(s)

Marlene Mueller

See Also

glm.lld, glm.link

Examples

  glm.ll(rep(0.4,2), c(0,1), family="bernoulli")

[Package KernGPLM version 0.65 Index]