poisreg {micsr} | R Documentation |
Poisson regression
Description
A unified interface to perform Poisson, Negbin and log-normal Poisson models
Usage
poisreg(
formula,
data,
weights,
subset,
na.action,
offset,
start = NULL,
mixing = c("none", "gamma", "lognorm"),
method = c("bfgs", "newton"),
vlink = c("nb1", "nb2"),
...
)
Arguments
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 |
Value
an object of class c("poisreg", "micsr")
, see
micsr::micsr
for further details.
Examples
nb1 <- poisreg(trips ~ workschl + size + dist + smsa + fulltime + distnod +
realinc + weekend + car, trips, mixing = "gamma", vlink = "nb1")
[Package micsr version 0.1-1 Index]