Learn R Programming

gplm (version 0.7-4)

glm.link: (Inverse) Link function for GLM

Description

Defines the inverse link function for a GLM.

Usage

glm.link(eta, family="gaussian", link="identity", k=1)

Arguments

eta
n x 1, linear predictors
family
text string, family of distributions (e.g. "gaussian" or "bernoulli", see details for glm.ll)
link
text string, link function (depending on family, see details for glm.ll)
k
integer > 0, parameter for the negative binomial

Value

n x 1, vector mu (responses)

See Also

glm.ll, glm.lld, glm.inverse.link

Examples

Run this code
  glm.link(c(-1,2), family="bernoulli", link="logit")

Run the code above in your browser using DataLab