plot.ugrpl: Diagnostic plots for the Unit Gamma regression with...

View source: R/7_diagnostic.R

plot.ugrplR Documentation

Diagnostic plots for the Unit Gamma regression with parametric link function

Description

Diagnostic plots for the Unit Gamma regression with parametric link function

Usage

## S3 method for class 'ugrpl'
plot(
  x,
  which = 1:4,
  type = c("quantile", "pearson", "response", "deviance"),
  ask = prod(graphics::par("mfcol")) < length(which) && grDevices::dev.interactive(),
  ...
)

Arguments

x

an object of class "ugrpl".

which

numeric. If a subset of the plots is required, specify a subset of the numbers \code1:8. See details below.

type

character; it specifies which residual should be produced in the summary plot. The available arguments are "quantile" (default), "pearson", "response" (raw residuals, y - mu), and "deviance".

ask

logical. If TRUE, the user is asked before each plot.

...

further arguments passed to or from other methods.

Details

The which argument can be used to select a subset of currently eight supported types of displays. The displays are:

which = 1:

residuals vs fitted values

which = 2:

residuals vs indices of observations

which = 3:

normal probability plot of the residuals. Recall that only the quantile residuals have a standard normal distribution.

which = 4:

local influence versus indices of observations under the case-weights perturbation scheme.

which = 5:

generalized leverage versus indices of observations.

which = 6:

response vs fitted values.

which = 7:

autocorrelation plot of the residuals.

which = 8:

partial autocorrelation plot of the residuals.


rdmatheus/ugrpl documentation built on July 13, 2024, 10:24 p.m.