Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

predprob

compute predicted probabilities from fitted models


Description

Compute predicted probabilities from fitted models, optionally at new covariate values.

Usage

predprob(obj, ...)

Arguments

obj

fitted model object

...

other arguments

Details

See documentation for specific methods.

Value

A matrix of predicted probabilities, each row a vector of predicted probabilities over the range of responses seen in the data (i.e., min(y):max(y)), conditional on the values of covariates.

Author(s)

See Also

Examples

## Not run: 
data("bioChemists")
zip <- zeroinfl(art ~ . | ., data = bioChemists, EM = TRUE)
phat <- predprob(zip)

newdata <- expand.grid(list(fem="Men",mar="Married",
                            kid5=1,phd=3.103,
                            ment=0:77))
phat <- predprob(zip, newdata = newdata)

## End(Not run)

pscl

Political Science Computational Laboratory

v1.5.5
GPL-2
Authors
Simon Jackman, with contributions from Alex Tahk, Achim Zeileis, Christina Maimone, Jim Fearon and Zoe Meers
Initial release
2020-02-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.