ewp_reg {ewp}R Documentation

Exponentially weighted Poisson regression model

Description

Exponentially weighted Poisson regression model

Usage

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.

Value

an ewp model


[Package ewp version 0.1.1 Index]