plot.bergreg: Diagnostic plots for the BerG Regression

Description Usage Arguments

Description

Five plots (selectable by which) are currently available: a plot of residuals against fitted values, a plot of residuals against the indexes, a Normal Q-Q plot, a barplot with comparisons of the observed and fitted frequencies, and a plot of the sample autocorelations of the residuals.

Usage

1
2
3
4
5
6
7
8
## S3 method for class 'bergreg'
plot(
  x,
  type = c("quantile", "pearson", "response"),
  which = 1:2,
  ask = prod(graphics::par("mfcol")) < length(which) && grDevices::dev.interactive(),
  ...
)

Arguments

x

an object of class bergreg.

type

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

which

numeric; if a subset of the plots is required, specify a subset of the numbers 1:5.

ask

logical; if TRUE, the user is asked before each plot.

...

further arguments passed to or from other methods.


rdmatheus/bergreg documentation built on Dec. 22, 2021, 1:04 p.m.