Returns the link functions, and parameter names, for vector generalized linear models (VGLMs).
linkfun(object, ...)
linkfunvlm(object, earg = FALSE, ...)
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.
The default output.
The extra arguments, in order.
An object which has parameter link functions, e.g.,
has class "vglm"
.
Logical.
Return the extra arguments associated with each
link function? If TRUE
then a list is returned.
Arguments that might be used in the future.
Thomas W. Yee
All fitted VGLMs have a link function applied to each parameter. This function returns these, and optionally, the extra arguments associated with them.
linkfun
,
multilogitlink
,
vglm
.
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