HW.original {nsRFA}R Documentation

Original Hosking and Wallis Fortran routine

Description

The original Fortran routine by Hosking is here used to analyse a region.

Usage

 HW.original (data, cod, Nsim=500)
 print.HWorig (x, ...)

Arguments

x object of class HWorig
data vector representing data from many samples defined with cod
cod array that defines the data subdivision among sites
Nsim number of regions simulated with the bootstrap of the original region
... additional parameter for print

Details

Value

HW.original returns an object of class HWorig (what the Fortran subroutine REGTST return).

Author(s)

Alberto Viglione, e-mail: alviglio@tiscali.it.

References

Hosking J., Wallis J. (1993) Some statistics useful in regional frequency analysis. Water Resources Research, 29 (2), pp. 271-281.

Hosking, J.R.M. and Wallis, J.R. (1997) Regional Frequency Analysis: an approach based on L-moments, Cambridge University Press, Cambridge, UK.

See Also

HW.tests.

Examples

data(hydroSIMN)
annualflows
summary(annualflows)
x <- annualflows["dato"][,]
cod <- annualflows["cod"][,]
split(x,cod)

HW.original(x,cod)

fac <- factor(annualflows["cod"][,],levels=c(34:38))
x2 <- annualflows[!is.na(fac),"dato"]
cod2 <- annualflows[!is.na(fac),"cod"]

HW.original(x2,cod2)

[Package nsRFA version 0.3-6 Index]