WPP.test {EWGoF} | R Documentation |
GoF tests based on the Weibull probability plot for the Weibull distribution
Description
Computes the GoF tests based on the Weibull probability plot (WPP). The test statistics are similar to the coefficient of determination of the regression on the WPP: (RSB) test statistic of Smith and Bain, (REJG) test statistic of Evans, Johnson and Green, (SPP) test statistic of Coles based on the stabilized probability plot.
The second family includes the Shapiro-Wilk type test statistics: (SB) Shapiro and Brain and (OK) Ozturk and Korukoglu test statistic.
Two additional statistics can also be computed: the first one (ST1) is based on the kurtosis and the second one (ST2) is based on the skewness coefficient.
Usage
WPP.test(x, type = "SB", nsim = 200)
Arguments
x |
a numeric vector of data values. |
type |
the type of the test statistic used. "OK" is the test statistic of Ozturk and Korukoglu, "RSB" the test statistic of Smith and Bain, "REJG" the test statistic of Evans-Johnson and Green, "SPP" the test statistic of Coles based on the stabilized probability plot, "SB" the test statistic of Shapiro and Brain, "ST1" the test statistic based on the kurtosis and "ST2" the test statistic based on the skewness. |
nsim |
an integer specifying the number of replicates used in Monte Carlo. |
Value
An object of class htest.
Author(s)
Meryam KRIT
References
Coles S.G., On goodness-of-fit tests for the two-parameter Weibull distribution derived from the stabilized probability plot, Biometrika, 76 (3), 593-598, 1989.
Evans J.W., Johnson R.A. and Green D.W., Two and three parameter Weibull goodness-of-fit tests, Research paper FPL-RP-493, U.S. Forest Products Laboratory, Madison, WI, 1989.
Ozturk A. and Korukoglu S., A new test for the extreme value distribution, Communications in Statistics - Simulation and Computation, 17, 1375-1393, 1988.
Smith R.M. and Bain L.J., Correlation type goodness-of-fit statistics with censored sampling, Communications in statistics, 5, 119-132, 1976.
Best D.J., Rayner J.C.W and Thas O., Comparison of five tests of fit for the extreme value distribution, Journal of Statistical Theory and Practice, 1 (1), 89-99, 2007.
Examples
x <- rlnorm(10,3)
#Apply the Ozturk-Korukoglu test
## Not run:
WPP.test(x,type="OK")
## End(Not run)
# Apply the generalized smooth test based on the kurtosis
## Not run:
WPP.test(x,type="ST1")
## End(Not run)