| poisreg | R Documentation | 
A unified interface to perform Poisson, Negbin and log-normal Poisson models
poisreg(
  formula,
  data,
  weights,
  subset,
  na.action,
  offset,
  contrasts = NULL,
  start = NULL,
  mixing = c("none", "gamma", "lognorm"),
  vlink = c("nb1", "nb2"),
  opt = c("bfgs", "nr", "newton"),
  maxit = 100,
  trace = 0,
  check_gradient = FALSE,
  ...
)
## S3 method for class 'poisreg'
scoretest(object, ..., vcov = NULL)
## S3 method for class 'poisreg'
residuals(object, ..., type = c("deviance", "pearson", "response"))
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, contrasts | 
 see   | 
start | 
 a vector of starting values  | 
mixing | 
 the mixing distribution, one of   | 
vlink | 
 one of   | 
opt | 
 optimization method  | 
maxit | 
 maximum number of iterations  | 
trace | 
 printing of intermediate result  | 
check_gradient | 
 if   | 
... | 
 further arguments  | 
object | 
 a   | 
vcov | 
 the covariance matrix estimator to use for the score test  | 
type | 
 the type of residuals for the   | 
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.