predprob.zeroinfl {pscl}R Documentation

Predicted probabilities from zero-inflated regression models

Description

Produces predicted probabilities of counts from a zero-inflated regression models

Usage

## S3 method for class 'zeroinfl':
predprob(obj,...)

Arguments

obj a fitted object of class inheriting from "zeroinfl"
... additional arguments to be passed to predict.zeroinfl

Details

Calls predict.zeroinfl with the option type="prob"

Value

See predict.zeroinfl

Author(s)

Simon Jackman <jackman@stanford.edu>

See Also

predprob, predict.zeroinfl

Examples

data(bioChemists)
zip <- zeroinfl(count=art ~ .,
                x = ~ fem + mar + kid5 + phd + ment,
                z = ~ fem + mar + kid5 + phd + ment,
                dist="poisson",        
                data=bioChemists,trace=TRUE) ## zero-infl poisson
phat <- predprob(zip)
newdata <- expand.grid(list(fem="Men",mar="Married",
                            kid5=1,phd=3.103,
                            ment=0:77))
phat <- predprob(zip,newdata=newdata)

[Package pscl version 0.52 Index]