Learn R Programming

HZIP (version 0.1.1)

envelope.HZIP: Envelope simulation for HZIP Model

Description

Produces a Q-Q plot of residuals from a Hierarchical Zero-Inflated Poisson (HZIP) Model fitted via hzip.

Usage

envelope.HZIP(object, nsim = 100, ...)

Value

Envelope simulation plot.

Arguments

object

An object of class HZIP, typically returned by hzip.

nsim

Integer. Number of simulations used to construct the envelope. Default is 100.

...

Additional arguments (currently ignored).

Details

A simulation envelope is added using Monte Carlo replications.

See Also

hzip, residuals.HZIP

Examples

Run this code
# \donttest{
data(salamanders)
fit.salamander <- hzip(y ~ mined|mined+spp,data = salamanders)
res <- residuals(fit.salamander)
envelope.HZIP(res, nsim = 21)
# }

Run the code above in your browser using DataLab