depvar {VGAM} | R Documentation |
Response Variable Extracted
Description
A generic function that extracts the response/dependent variable from objects.
Usage
depvar(object, ...)
Arguments
object |
An object that has some response/dependent variable. |
... |
Other arguments fed into the specific methods function of
the model.
In particular, sometimes |
Details
By default
this function is preferred to calling fit@y
, say.
Value
The response/dependent variable, usually as a matrix or vector.
Author(s)
Thomas W. Yee
See Also
Examples
pneumo <- transform(pneumo, let = log(exposure.time))
(fit <- vglm(cbind(normal, mild, severe) ~ let, propodds, pneumo))
fit@y # Sample proportions (not recommended)
depvar(fit) # Better than using fit@y
weights(fit, type = "prior") # Number of observations
[Package VGAM version 1.1-11 Index]