fitted.izip: Extract Fitted Values from an iZIP Model Fit

Description Usage Arguments Value See Also Examples

View source: R/summarize_extract.R

Description

An accessor function used to extract the fitted values from a 'izip' object or a 'tsizip' object. fitted.values is an alias for fitted.

Usage

1
2
3
4
5
## S3 method for class 'izip'
fitted(object, ...)

## S3 method for class 'tsizip'
fitted(object, ...)

Arguments

object

an object class 'izip' or 'tsizip' object, obtained from a call to glm.izip or tsglm.izip

...

other arguments passed to or from other methods (currently unused).

Value

Fitted values mu extracted from the object object.

See Also

coef.izip, residuals.izip, glm.izip.

Examples

1
2
3
4
5
6
7
data(bioChemists)
M_bioChem <- glm.izip(art ~ ., data = bioChemists)
fitted(M_bioChem)

data(arson)
M_arson <- tsglm.izip(arson ~ 1, past_mean_lags = 1, past_obs_lags = c(1, 2))
fitted.values(M_arson)

thomas-fung/izipr documentation built on Dec. 23, 2021, 9:57 a.m.