predprob | R Documentation |
Compute predicted probabilities from fitted models, optionally at new covariate values.
predprob(obj, ...)
obj |
fitted model object |
... |
other arguments |
See documentation for specific methods.
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.
Simon Jackman simon.jackman@sydney.edu.au
predprob.glm
, predprob.zeroinfl
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.