plot.mbsi: Plot goodness of fit of the computation of the standardized...

Description Usage Arguments Details Value Author(s) Examples

Description

plot.mbsi make graphs to evaluate the goodness of fit of the gamlss model. This is useful to compare the spi and the mbsi.

Usage

1
2
## S3 method for class 'mbsi'
plot(x, which = c("fit", "ecdf"), binwidth = 0.05, ...)

Arguments

x

A mbsi object returned by spi or mbsi.

which

A character value indicating which type of graph to return. The fit option plots the mean and coverage interval of rainfall, while the ecdf option plots an histogram of the empirical cumulative density function.

binwidth

The binwidth value for the histogram if which == "ecdf".

...

Additional arguments

Details

Two options are provided. The default option is a graph of the mean and coverage interval obtained from the computation of spi or mbsi. This is useful to evaluate the seasonal behaviour and the parameter estimation. The second option is the histogram of the empirical cumulative density function to assess the probability integral transform.

Value

A ggplot object. The graph is shown when this object is printed.

Author(s)

Erick A. Chacon-Montalvan

Examples

1
2
3
4
5
6
7
data(simrain)
spi_rain <- mbsi(simrain$rain, simrain$time)

# Visualize model fitting
plot(spi_rain)
# Visualize distribution of empirical cumulative density function
plot(spi_rain, which = "ecdf", binwidth = 0.05)

ErickChacon/mbsi documentation built on Aug. 1, 2019, 4:47 p.m.