update.zeroinfl: Update method for zeroinfl

Description Usage Arguments Examples

View source: R/update.zeroinfl.R

Description

A method for update function that works with zeroinfl models from the pscl package. The code for this method was taken from https://stackoverflow.com/questions/21247078/updating-a-zeroinfl-model-in-r.

Usage

1
2
## S3 method for class 'zeroinfl'
update(object, new, ...)

Arguments

object

zeroinfl model

new

a formula representing the updated model

Examples

1
2
3
4
require(pscl)
model <- zeroinfl(extortions ~ bribes | bribes, dist = "negbin", data = testdata)

update(model, . ~ . | . + years)

prestevez/vicarp documentation built on Jan. 28, 2020, 1:56 p.m.