Plot Diagnostics for a CPN Model
plot.cpn.Rd
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.
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.
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.