update.izip: Update and Re-fit a iZIP Model

Description Usage Arguments See Also Examples

View source: R/inference.R

Description

update (i.e., update.izip) will update and (by-default) re-fit a model. It is identical to update in the stats package.

Usage

1
2
## S3 method for class 'izip'
update(object, formula., ..., evaluate = TRUE)

Arguments

object

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

formula.

changes to the existing formula in object – see update.formula

...

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

evaluate

logical; if TRUE evaluate the new call otherwise simply return the call

See Also

glm.izip, update.formula, iziplrtest.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# To update the regression formula
data(bioChemist)

## Fit full model
M_bioChem.full <- glm.izip(art ~ ., data = bioChemists)
M_bioChem.full

## Dropping phd
M.bioChem.null <- update(M_bioChem.full, . ~ . - phd)
M.bioChem.null

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