linkfun | R Documentation |
Returns the link functions, and parameter names, for vector generalized linear models (VGLMs).
linkfun(object, ...)
linkfunvlm(object, earg = FALSE, ...)
object |
An object which has parameter link functions, e.g.,
has class |
earg |
Logical.
Return the extra arguments associated with each
link function? If |
... |
Arguments that might be used in the future. |
All fitted VGLMs have a link function applied to each parameter. This function returns these, and optionally, the extra arguments associated with them.
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. |
Presently, the multinomial logit model has only
one link function, multilogitlink
,
so a warning is not issued for that link.
For other models, if the number of link functions does
not equal M
then a warning may be issued.
Thomas W. Yee
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.