specials | R Documentation |
Return any special values or quantities in a fitted object, and in particular in a VGLM fit
specials(object, ...)
specialsvglm(object, ...)
object |
an object of class |
... |
any additional arguments, to future-proof this function. |
This extractor function was motivated by GAITD regression
(Yee and Ma, 2024)
where the values from three disjoint sets are referred
to as special.
More generally, S4 methods functions can be written so that
specials()
will work on any S4 object, where
what is called special depends on the methodology at hand.
Returns any ‘special’ values or quantities associated with a fitted regression model. This is often something simple such as a list or a vector.
Yee, T. W. and Ma, C. (2024). Generally altered, inflated, truncated and deflated regression. Statistical Science, 39 (in press).
vglm
,
vglm-class
,
inflated
,
altered
,
truncated
,
Gaitdpois
,
gaitdpoisson
.
abdata <- data.frame(y = 0:7, w = c(182, 41, 12, 2, 2, 0, 0, 1))
fit1 <- vglm(y ~ 1, gaitdpoisson(a.mix = 0), data = abdata,
weight = w, subset = w > 0)
specials(fit1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.