Fit a zero-inflated Poisson Generalized Additive Model using the EM Algorithm
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
)
formula for the count model
formula for the binary model
a data frame or list containing the model response variable and covariates required by the formula.
an optional list of knot values to be used for basis construction.
initial lambda vector
initial pi vector
binary model gamma
count model gamma
include model selection penalty
method for selecting smoothing parameters
minimum number of EM iterations
maximum number of EM iterations
tolerance (default=1.0E-2)