DispIndex: Dispersion index

Description Usage Arguments Details Reference See Also Examples

Description

Returns the dispersion index (or variance to mean ratio) to verify the hypothesis of a Homogenous Poisson process.

Usage

1
2
DispIndex(obj, k = NULL, ci = FALSE, alpha = 0.05,
  method = "asymptotic", nsim = 10000)

Arguments

obj

An output of FitPot.

k

Number of classes. Default value chosen to ensure at least 5 classes and aims at approximately an average 5 events per classe.

ci

Should confident interval and p-value be returns.

alpha

Significance level.

method

Method for computing the confident interval and the p-value. Either 'asymptotic' for chi-squared approximation or 'boot' for bootstrap.

nsim

Number of bootstrap samples.

Details

The function PlotDispIndex will loop across calls of function FitPot and DispIndex and will produce a graphics of the Dispersion index in respect of the threshold u. See respective functions for a description of the function parameters. The points in the plot are returns as a data.frame and parameter display can be set to FALSE to prevent the display of the graphic.

Reference

Lang M, Ouarda TBMJ, Bobée B. (1999) Towards operational guidelines for over-threshold modeling. Journal of Hydrology. Dec 6;225(3):103–17.

See Also

PlotMrl

Examples

1
2
3
4
5
6
7
8
fit <- FitPot(flow~date,flowStJohn, u = 1000,
              declust = 'wrc', r = 14)

DispIndex(fit, ci = TRUE)

PlotDispIndex(flow~date,flowStJohn,
              u = seq(500,2000, len = 50),
              declust = 'wrc', r = 14)

martindurocher/floodStat documentation built on May 31, 2019, 12:42 a.m.