berg_envel: Envelope Plot for the BerG Regression Model

Description Usage Arguments Value

View source: R/berg_diagnostic.R

Description

Provides the simulated envelope plot of the residuals (selectable by type) resulting from the BerG regression fit.

Usage

1
2
3
4
5
6
7
berg_envel(object, nsim = 99, progressBar = TRUE, ...)

## S3 method for class 'berg_envel'
print(x, ...)

## S3 method for class 'berg_envel'
plot(x, type = c("quantile", "pearson", "response"), level = 0.95, ...)

Arguments

object

a 'bergrm' object.

nsim

the number of replicates. The default is nsim = 99.

progressBar

logical; if TRUE, a progress bar is displayed giving the progress of making the graph. It can slow down the function considerably in applications with a large sample size.

...

further arguments passed to or from other methods.

x

an 'envel_berg' object.

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).

level

level of the sample quantile of the residual used in the construction of confidence bands.

Value

berg_envel returns an "berg_envel" object wichi consists of a list with the following components:

residuals

a list with the quantile, pearson, and raw residuals resulting from the fit of the BerG regression model.

simulation

a list whose components are matrices containing the ordered quantile, pearson, and raw residuals of the simulation for the plot envelope.

The method plot makes the envelope plot.


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