cdfwak {lmom} | R Documentation |
Wakeby distribution
Description
Distribution function and quantile function of the Wakeby distribution.
Usage
cdfwak(x, para = c(0, 1, 0, 0, 0))
quawak(f, para = c(0, 1, 0, 0, 0))
Arguments
x |
Vector of quantiles. |
f |
Vector of probabilities. |
para |
Numeric vector containing the parameters of the distribution,
in the order
|
Details
The Wakeby distribution with
parameters ,
,
,
and
has quantile function
The parameters are restricted as in Hosking and Wallis (1997, Appendix A.11):
either
or
;
if
then
;
if
then
;
-
;
-
.
The distribution has a lower bound at and,
if
, an upper bound at
.
The generalized Pareto distribution is the special case
or
.
The exponential distribution is the special case
.
The uniform distribution is the special case
,
.
Value
cdfwak
gives the distribution function;
quawak
gives the quantile function.
Note
The functions expect the distribution parameters in a vector,
rather than as separate arguments as in the standard R
distribution functions pnorm
, qnorm
, etc.
References
Hosking, J. R. M. and Wallis, J. R. (1997). Regional frequency analysis: an approach based on L-moments, Cambridge University Press, Appendix A.11.
See Also
cdfgpa
for the generalized Pareto distribution.
cdfexp
for the exponential distribution.
Examples
# Random sample from the Wakeby distribution
# with parameters xi=0, alpha=30, beta=20, gamma=1, delta=0.3.
quawak(runif(100), c(0,30,20,1,0.3))