Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: glm
See also: glmcore glmstat glmout glminvlink

Quantlet: glmlink
Description: glmlink computes the link function.

Link:
Usage: mu = glmlink(code,eta{,opt})
Input:
code text string, the short code for the model (e.g. "bilo" for logit or "noid" for ordinary PLM).
eta n x d matrix, the index values.
opt optional, a list with optional input. "glmopt" can be used to set up this parameter.
opt.pow optional, power for power link. If not given, set to 0 (logarithm).
opt.nbk scalar, extra parameter k for negative binomial distribution. If not given, set to 1 (geometric distribution).
Output:
mu n x d matrix, the link function applied to eta.

Example:
library("glm")
eta=2
mu=glmlink("bilo",eta)
mu

Result:
The logistic link for the logit model is computed at eta=2:
Contents of mu
[1,]   0.8808



Author: M. Mueller, 20010228
(C) MD*TECH Method and Data Technologies, 05.02.2006