Estimate the
pwMoment(x, j = 0, k = 0, method = "unbiased",
plot.pos.cons = c(a = 0.35, b = 0), na.rm = FALSE)
numeric vector of observations.
non-negative integers specifying the order of the moment.
character string specifying what method to use to compute the
probability-weighted moment. The possible values are "unbiased"
(method based on the U-statistic; the default), or "plotting.position"
(method based on the plotting position formula). See the DETAILS section for
more information.
numeric vector of length 2 specifying the constants used in the formula for the
plotting positions when method="plotting.position"
. The default value is
plot.pos.cons=c(a=0.35, b=0)
. If this vector has a names attribute with
the value c("a","b")
or c("b","a")
, then the elements will be
matched by name in the formula for computing the plotting positions. Otherwise,
the first element is mapped to the name "a"
and the second element to the
name "b"
. See the DETAILS section for more information. This argument is
ignored if method="ubiased"
.
logical scalar indicating whether to remove missing values from x
.
If na.rm=FALSE
(the default) and x
contains missing values,
then a missing value (NA
) is returned. If na.rm=TRUE
, missing
values are removed from x
prior to computing the probability-weighted
moment.
A numeric scalar--the value of the
The definition of a probability-weighted moment, introduced by
Greenwood et al. (1979), is as follows. Let
Greenwood et al. (1979) state that in the special case where
Unbiased Estimators (method="unbiased"
)
Landwehr et al. (1979) show that, given a random sample of
Plotting-Position Estimators (method="plotting.position"
)
Hosking et al. (1985) propose alternative estimators of
Greenwood, J.A., J.M. Landwehr, N.C. Matalas, and J.R. Wallis. (1979). Probability Weighted Moments: Definition and Relation to Parameters of Several Distributions Expressible in Inverse Form. Water Resources Research 15(5), 1049--1054.
Hoeffding, W. (1948). A Class of Statistics with Asymptotically Normal Distribution. Annals of Mathematical Statistics 19, 293--325.
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 52(1), 105--124.
Hosking, J.R.M., and J.R. Wallis (1995). A Comparison of Unbiased and Plotting-Position Estimators of L Moments. Water Resources Research 31(8), 2019--2025.
Hosking, J.R.M., J.R. Wallis, and E.F. Wood. (1985). Estimation of the Generalized Extreme-Value Distribution by the Method of Probability-Weighted Moments. Technometrics 27(3), 251--261.
Landwehr, J.M., N.C. Matalas, and J.R. Wallis. (1979). Probability Weighted Moments Compared With Some Traditional Techniques in Estimating Gumbel Parameters and Quantiles. Water Resources Research 15(5), 1055--1064.
Lehmann, E.L. (1975). Nonparametrics: Statistical Methods Based on Ranks. Holden-Day, Oakland, CA, pp.362-371.
# NOT RUN {
# Generate 20 observations from a generalized extreme value distribution
# with parameters location=10, scale=2, and shape=.25, then compute the
# 0'th, 1'st and 2'nd probability-weighted moments.
# (Note: the call to set.seed simply allows you to reproduce this example.)
set.seed(250)
dat <- rgevd(20, location = 10, scale = 2, shape = 0.25)
pwMoment(dat)
#[1] 10.59556
pwMoment(dat, 1)
#[1] 5.798481
pwMoment(dat, 2)
#[1] 4.060574
pwMoment(dat, k = 1)
#[1] 4.797081
pwMoment(dat, k = 2)
#[1] 3.059173
pwMoment(dat, 1, method = "plotting.position")
# [1] 5.852913
pwMoment(dat, 1, method = "plotting.position",
plot.pos = c(.325, 1))
#[1] 5.586817
#----------
# Clean Up
#---------
rm(dat)
# }
Run the code above in your browser using DataLab