HW.original {nsRFA} | R Documentation |
The original Fortran routine by Hosking is here used to analyse a region.
HW.original (data, cod, Nsim=500) print.HWorig (x, ...)
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 |
HW.original
returns an object of class HWorig
(what the Fortran subroutine REGTST return).
Alberto Viglione, e-mail: alviglio@tiscali.it.
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.
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)