ewp_reg function

Exponentially weighted Poisson regression model

Exponentially weighted Poisson regression model

ewp_reg( formula, family = "ewp3", data, verbose = TRUE, method = "Nelder-Mead", hessian = TRUE, autoscale = TRUE, maxiter = 5000, sum_limit = round(max(Y) * 3) )

Arguments

  • formula: an object of class "formula" (or one that can be coerced to that class): a symbolic description of the model to be fitted.
  • family: choice of "ewp2" or "ewp3"
  • data: a data frame containing the variables in the model.
  • verbose: logical, defaults to TRUE; print model fitting progress
  • method: string, passed to optim, defaults to 'BFGS'
  • hessian: logical, defaults to TRUE; calculate Hessian?
  • autoscale: logical, defaults to TRUE; automatically scale model parameters inside the optimisation routine based on initial estimates from a Poisson regression.
  • maxiter: numeric, maximum number of iterations for optim
  • sum_limit: numeric, defaults to 3*maximum count; upper limit for the sum used for the normalizing factor.

Returns

an ewp model

  • Maintainer: Philipp Boersch-Supan
  • License: MIT + file LICENSE
  • Last published: 2024-06-26

Useful links