Fit a zero-inflated Negative Binomial Generalized Additive Model using the EM Algorithm
zinbgam(
mu.formula,
pi.formula,
data,
knots = NULL,
mu = NULL,
pi = NULL,
theta = 1,
gamma.pi = 1,
gamma.mu = 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 mu vector
intial pi vector
initial theta value
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)