pwm.pp {lmomco} | R Documentation |
Plotting-Position Sample Probability-Weighted Moments
Description
The sample probability-weighted moments (PWMs) are computed from the plotting positions of the data. The first five 's are computed by default. The plotting-position formula for a sample size of
is
where is the nonexceedance probability
of the
th ascending data values. An alternative form of the plotting position equation is
where is a single plotting position coefficient. Having
provides
and
, therefore the parameters
and
together specify the plotting-position type. The PWMs are computed by
where is the
th order statistic
of random variable X, and
is
for the PWM order.
Usage
pwm.pp(x, pp=NULL, A=NULL, B=NULL, a=0, nmom=5, sort=TRUE)
Arguments
x |
A vector of data values. |
pp |
An optional vector of nonexceedance probabilities. If present then |
A |
A value for the plotting-position formula. If |
B |
Another value for the plotting-position formula. If |
a |
A single plotting position coefficient from which, if not |
nmom |
Number of PWMs to return. |
sort |
Do the data need sorting? The computations require sorted data. This option is provided to optimize processing speed if presorted data already exists. |
Value
An R list
is returned.
betas |
The PWMs. Note that convention is the have a |
source |
Source of the PWMs: “pwm.pp”. |
Author(s)
W.H. Asquith
References
Greenwood, J.A., Landwehr, J.M., Matalas, N.C., and Wallis, J.R., 1979, Probability weighted moments—Definition and relation to parameters of several distributions expressable in inverse form: Water Resources Research, v. 15, pp. 1,049–1,054.
Hosking, J.R.M., 1990, L-moments—Analysis and estimation of distributions using linear combinations of order statistics: Journal of the Royal Statistical Society, Series B, v. 52, pp. 105–124.
See Also
Examples
pwm <- pwm.pp(rnorm(20), A=-0.35, B=0)
X <- rnorm(20)
pwm <- pwm.pp(X, pp=pp(X)) # weibull plotting positions