WPP.test: GoF tests based on the Weibull probability plot for the...

Description Usage Arguments Value Author(s) References Examples

View source: R/WPP.test.R

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

1
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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
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)

EWGoF documentation built on Oct. 5, 2017, 5:07 p.m.