Learn R Programming

gplm (version 0.7-4)

glm.inverse.link: Link function for GLM

Description

Defines the link function for a GLM.

Usage

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

Arguments

mu
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 eta (predictors)

See Also

glm.ll, glm.lld, glm.link

Examples

Run this code
  glm.inverse.link(c(0.25,0.5), family="bernoulli", link="logit")

Run the code above in your browser using DataLab