Generic function for returning the link functions of a fitted object.
linkfun(object, ...)
An object which has parameter link functions.
Other arguments fed into the specific methods function of the model.
The value returned depends specifically on the methods function invoked.
Fitted models in the VGAM have parameter link functions. This generic function returns these.
# NOT RUN {
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