Learn R Programming

VGAM (version 1.1-14)

linkfun: Link Functions for VGLMs

Description

Returns the link functions, and parameter names, for vector generalized linear models (VGLMs).

Usage

linkfun(object, ...)
linkfunvlm(object, earg = FALSE, by.var = FALSE, ...)

Arguments

Value

By default, usually just a (named) character string, with the link functions in order. It is named with the parameter names. If earg = TRUE then a list with the following components.

link

The default output.

earg

The extra arguments, in order.

If by.var = TRUE then what is returned is described above.

Details

All fitted VGLMs have a link function applied to each parameter. This function returns these, and optionally, the extra arguments associated with them.

See Also

linkfun, multilogitlink, vglm, coefvlm.

Examples

Run this code
pneumo <- transform(pneumo, let = log(exposure.time))
fit1 <- vglm(cbind(normal, mild, severe) ~ let, propodds, data = pneumo)
coef(fit1, matrix = TRUE)
linkfun(fit1)
linkfun(fit1, earg = TRUE)

fit2 <- vglm(cbind(normal, mild, severe) ~ let, multinomial, data = pneumo)
coef(fit2, matrix = TRUE)
linkfun(fit2)
linkfun(fit2, earg = TRUE)

Run the code above in your browser using DataLab