| zeroinfl {pscl} | R Documentation |
Fit zero-inflated regression models for count data via maximum likelihood.
zeroinfl(formula, data, subset, na.action,
dist = c("poisson", "negbin", "geometric"),
link = c("logit", "probit", "cloglog", "cauchit", "log"),
control = zeroinfl.control(...),
model = TRUE, y = TRUE, x = FALSE, ...)
formula |
symbolic description of the model, see details. |
data, subset, na.action |
arguments controlling formula processing
via model.frame. |
dist |
character specification of count model family (a log link is always used). |
link |
character specification of link function in the binary zero-inflation model (a binomial family is always used). |
control |
a list of control arguments specified via
zeroinfl.control. |
model, y, x |
logicals. If TRUE the corresponding components
of the fit (model frame, response, model matrix) are returned. |
... |
arguments passed to zeroinfl.control in the
default setum the legend. legendLoc
may be a vector, specifying a unique legend location for each
requested trace plots. If
legendLoc is of length 1, it will be replicated
to have length equal to the number of requested trace plots.
See Also
Examples
data(s109)
## short run for demo purposes only
id1 <- ideal(s109,
meanzero=TRUE,
maxiter=500,
burnin=100,thin=10,
verbose=TRUE)
tracex(id1,legis="KENN")
## n.b., no such legislator named Horrendous Goblin
tracex(id1,legis=c("KENN","BOX","KYL","Horrendous Goblin"))
## Not run:
id2 <- ideal(s109,
d=2,
maxiter=5000, ## unidentified!
burnin=0,
thin=50)
tracex(id2,d=1,legis=c("KENNEDY","BOXER","KYL","Horrendous Goblin"))
tracex(id2,d=2,legis=c("KENNEDY","BOXER","KYL","Horrendous Goblin"))
tracex(id2,d=1:2,
legis=c("KENNEDY","BOXER","KYL","Horrendous Goblin"))
## partial matching
tracex(id2,d=1:2,
legis=c("KENN","BOX","BID","SNO","SPEC","MCCA","KYL",
"Horrendous Goblin"),
showAll=TRUE)
## End(Not run)
[Package pscl version 0.73 Index]
|