envel_berg: Envelope Graph of the BerG Regression Model

Description Usage Arguments Value Author(s) References

View source: R/berg_diagnostic.R

Description

Provides the normal envelope simulated probability plot of Pearson's residuals, and of the randomized quantile residuals resulting from the BerG regression model fit.

Usage

1
2
3
4
5
6
7
envel_berg(
  object,
  residual = c("all", "quantile", "pearson"),
  R = 99,
  control = berg_control(...),
  ...
)

Arguments

object

object of class 'bergrm'.

residual

character; specifies which residual should be produced in the normal probability plot. The available arguments are "all" (default) for both randomized quantile and Pearson residuals; "quantile" for randomized quantile residuals; and "pearson" for Pearson residuals.

R

number of replicates.

control

a list of control arguments specified via berg_control.

...

arguments passed to berg_control.

Value

Returns the normal envelope simulated probability plot of Pearson residuals and random quantile residuals, respectively.

Author(s)

Rodrigo M. R. Medeiros <rodrigo.matheus@live.com>

References

Bourguignon, M. and Medeiros, R. (2019). A flexibe, simple and useful regression model for fitting count data. Kleiber, C., & Zeileis, A. (2016). Visualizing count data regressions using rootograms. The American Statistician, 70, 296-303


rdmatheus/bergrm documentation built on Oct. 1, 2020, 4:38 a.m.