powered by
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"), ... )
an object of class c("poisreg", "micsr"), see micsr::micsr for further details.
c("poisreg", "micsr")
micsr::micsr
a symbolic description of the model, (for the count component and for the selection equation)
a data frame
see stats::lm,
stats::lm
a vector of starting values
the mixing distribution, one of "none", "gamma" and "lognorm"
"none"
"gamma"
"lognorm"
the optimization method, one of "newton" and "bfgs"
"newton"
"bfgs"
one of "nb1" and "nb2"
"nb1"
"nb2"
further arguments
nb1 <- poisreg(trips ~ workschl + size + dist + smsa + fulltime + distnod + realinc + weekend + car, trips, mixing = "gamma", vlink = "nb1")
Run the code above in your browser using DataLab