Skip to contents

Generates diagnostic plots for a fitted Compound Poisson-Normal (CPN) model object. Options include a residuals vs fitted values plot and a Q-Q plot of the deviance residuals.

Usage

# S3 method for class 'cpn'
plot(x, which = c("residuals", "qq"), ...)

Arguments

x

An object of class "cpn", typically resulting from a CPN model fitting function.

which

A character string specifying the type of plot to produce. Options are "residuals" (default) for a residuals vs fitted values plot, and "qq" for a Q-Q plot of deviance residuals.

...

Additional graphical parameters passed to the underlying plotting functions.

Value

This function is called for its side effects and does not return a value.

Details

The residuals vs fitted plot helps assess non-linearity, unequal error variances, and outliers. The Q-Q plot checks for normality of deviance residuals.