zipgam: Zero-inflated Poisson GAM

View source: R/EM_gam.R

zipgamR Documentation

Zero-inflated Poisson GAM

Description

Fit a zero-inflated Poisson Generalized Additive Model using the EM Algorithm

Usage

zipgam(
  lambda.formula,
  pi.formula,
  data,
  knots = NULL,
  lambda = NULL,
  pi = NULL,
  gamma.pi = 1,
  gamma.lambda = 1,
  select = FALSE,
  method = "GCV.Cp",
  min.em = 5,
  max.em = 50,
  tol = 0.01
)

Arguments

lambda.formula

formula for the count model

pi.formula

formula for the binary model

data

a data frame or list containing the model response variable and covariates required by the formula.

knots

an optional list of knot values to be used for basis construction.

lambda

initial lambda vector

pi

initial pi vector

gamma.pi

binary model gamma

gamma.lambda

count model gamma

select

include model selection penalty

method

method for selecting smoothing parameters

min.em

minimum number of EM iterations

max.em

maximum number of EM iterations

tol

tolerance (default=1.0E-2)


AustralianAntarcticDataCentre/zigam documentation built on June 30, 2023, 11:49 a.m.