zim
is used to fit zero-inflated models.
zim(
formula,
data,
subset,
na.action,
weights = 1,
offset = 0,
control = zim.control(...),
...
)
an objective of class "formula
".
an optional dataframe, list or environment containing the variables in the model.
an optional vector specifying a subset of observations to be used in the fitting process.
a function which indicates what should happen when the data contain NA
s.
an optional vector of 'prior weights' to be used in the fitting process.
this can be used to specify a priori known component to be included in the linear predictor during fitting.
control arguments.
additional arguments.
zim
is very similar to zeroinfl
from the pscl
package. Both functions can be used to
fit observation-driven models for zero-inflated time series.