poisreg | R Documentation |
A unified interface to perform Poisson, Negbin and log-normal Poisson models
poisreg(
formula,
data,
weights,
subset,
na.action,
offset,
start = NULL,
mixing = c("none", "gamma", "lognorm"),
method = c("bfgs", "newton"),
vlink = c("nb1", "nb2"),
...
)
formula |
a symbolic description of the model, (for the count component and for the selection equation) |
data |
a data frame |
subset , weights , na.action , offset |
see |
start |
a vector of starting values |
mixing |
the mixing distribution, one of |
method |
the optimization method, one of |
vlink |
one of |
... |
further arguments |
an object of class c("poisreg", "micsr")
, see
micsr::micsr
for further details.
nb1 <- poisreg(trips ~ workschl + size + dist + smsa + fulltime + distnod +
realinc + weekend + car, trips, mixing = "gamma", vlink = "nb1")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.