model.matrix.izip: Extract the Design Matrix from a iZIP Model Fit

Description Usage Arguments Value Examples

View source: R/summarize_extract.R

Description

Extract the Design Matrix from a iZIP Model Fit

Usage

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

## S3 method for class 'tsizip'
model.matrix(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

The method will return the saved model.matrix used when fitting the iZIP model.

Examples

1
2
3
data(bioChemists)
M_bioChem <- glm.izip(art ~ ., data = bioChemists)
model.matrix(M_bioChem)

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