
zTestGevdShape(x, pwme.method = "unbiased",
plot.pos.cons = c(a = 0.35, b = 0), alternative = "two.sided")
NA
), undefined (NaN
), and infinite (Inf
, -Inf
)
values are allowed but will be removed."unbiased"
(method based on the U-statistic;
the default), and "plotting.position"
(plotting position). See the plot.pos.cons=c(a=0.35, b=0)
.
If this vector has a names attribute with the value c("a","b")
or
"two.sided"
(shape not equal to 0; the default), "less"
(shape less than 0), and "greater"
(shape greater than 0)."htest"
containing the results of the hypothesis test.
See the help file for htest.object
for details.location=
$\eta$, scale=
$\theta$, and shape=
$\kappa$.
Furthermore, let $\hat{\kappa}_{pwme}$ denote the probability-weighted moments
estimator (PWME) of the shape parameter $\kappa$ (see the help file for
egevd
). Then the statistic
zTestGevdShape
performs the usual one-sample z-test using the statistic computed in Equation (1).
The PWME of $\kappa$ may be computed using either U-statistic type
probability-weighted moments estimators or plotting-position type estimators
(see egevd
). Although Hosking et al. (1985) base their statistic on
plotting-position type estimators, Hosking and Wallis (1995) recommend using the
U-statistic type estimators for almost all applications.
This test is only asymptotically correct. Hosking et al. (1985), however, found
that the $\alpha$-level is adequately maintained for samples as small as
$n = 25$.egevd
, EVD, eevd
,
Goodness-of-Fit Tests, htest.object
.# Generate 25 observations from a generalized extreme value distribution with
# parameters location=2, scale=1, and shape=1, and test the null hypothesis
# that the shape parameter is equal to 0.
# (Note: the call to set.seed simply allows you to reproduce this example.)
set.seed(250)
dat <- rgevd(25, location = 2, scale = 1, shape = 1)
zTestGevdShape(dat)
#Results of Hypothesis Test
#--------------------------
#
#Null Hypothesis: shape = 0
#
#Alternative Hypothesis: True shape is not equal to 0
#
#Test Name: Z-test of shape=0 for GEVD
#
#Estimated Parameter(s): shape = 0.6623014
#
#Estimation Method: Unbiased pwme
#
#Data: dat
#
#Sample Size: 25
#
#Test Statistic: z = 4.412206
#
#P-value: 1.023225e-05
#----------
# Clean up
#---------
rm(dat)
Run the code above in your browser using DataLab