plot.evreg: Plot method for evreg fitted model objects

Description Usage Arguments Details Value Examples

View source: R/residual_qq_plot.R

Description

Produces a residual QQ plot based on fitted model objects returned from gevreg and ppreg.

Usage

1
2
## S3 method for class 'evreg'
plot(x, y = NULL, ...)

Arguments

x

An object returned from either gevreg or ppreg.

y

Not used.

...

Further arguments to be passed to plot.

Details

If x was returned from gevreg then the ordered (smallest to largest) residuals r_i, i = 1, ..., n are plotted against the 100i / (n + 1)% i = 1, ..., n quantiles of a standard Gumbel distribution. If x was returned from ppreg then the ordered residuals are plotted against the 100i / (n + 1)% i = 1, ..., n of a standard exponential distribution.

Value

Nothing is returned, only the plot is produced.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# GEV
f1 <- gevreg(SeaLevel, data = evreg::fremantle, mu = ~ SOI)
plot(f1)

# PP (no coavriates)
pp <- ppreg(y = SeaLevel, data = fremantle[, -1])
plot(pp)

# PP regression
pp <- ppreg(y = SeaLevel, data = fremantle[, -1], mu = ~SOI)

pengyuwei94/evreg documentation built on Aug. 29, 2019, 1:06 p.m.