Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

specialsvglm

Special Values or Quantities in a Fitted Object


Description

Return any special values or quantities in a fitted object, and in particular in a VGLM fit

Usage

specials(object, ...)
specialsvglm(object, ...)

Arguments

object

an object of class "vglm" whose family function begins with "gait".

...

any additional arguments, to future-proof this function.

Details

This extractor function was motivated by GAIT regression (Yee and Ma, 2020) 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.

Value

Returns any ‘special’ values or quantities associated with a fitted regression model. This is often something simple such as a list or a vector.

References

Yee, T. W. and Ma, C. (2020). Generally–altered, –inflated and –truncated regression, with application to heaped and seeped counts. In preparation.

See Also

Examples

abdata <- data.frame(y = 0:7, w = c(182, 41, 12, 2, 2, 0, 0, 1))
fit1 <- vglm(y ~ 1, gaitpoisson(alt.mix = 0), data = abdata,
             weight = w, subset = w > 0)
specials(fit1)

VGAM

Vector Generalized Linear and Additive Models

v1.1-5
GPL-3
Authors
Thomas Yee [aut, cre], Cleve Moler [ctb] (author of several LINPACK routines)
Initial release
2021-01-13

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.