laplace.test: Goodness-of-fit Test Statistics for the Laplace Distribution

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Goodness-of-fit test statistics A2 (Anderson–Darling), W2 (Cramer–von Mises), U2 (Watson), D (Kolmogorov–Smirnov), and V (Kuiper). By default, NAs are omitted. For the tables of critical values, see \insertCiteStephens_1986;textuallawstat and \insertCitePuig_Stephens_2000;textuallawstat.

Usage

1

Arguments

y

a numeric vector of data values.

Details

The function originally used plaplace function from R package VGAM \insertCiteVGAMlawstat, however, to resolve dependencies between packages, the plaplace function was copied entirely to the current package under the name VGAM_plaplace.

Value

A list with the following numeric components:

A2

the Anderson–Darling statistic.

W2

the Cramer–von Mises statistic.

U2

the Watson statistic.

D

the Kolmogorov–Smirnov statistic.

V

the Kuiper statistic.

Author(s)

Kimihiro Noguchi, Yulia R. Gel

References

\insertAllCited

See Also

plaplace

Examples

1
2
3
4
5
6
7
8
## Differences in flood levels example taken from Puig and Stephens (2000)
y <- c(1.96,1.97,3.60,3.80,4.79,5.66,5.76,5.78,6.27,6.30,6.76,7.65,7.84,7.99,8.51,9.18,
     10.13,10.24,10.25,10.43,11.45,11.48,11.75,11.81,12.33,12.78,13.06,13.29,13.98,14.18,
     14.40,16.22,17.06)
laplace.test(y)$D
## [1] 0.9177726
## The critical value at the 0.05 significance level is approximately 0.906.
## Thus, the null hypothesis should be rejected at the 0.05 level.

gel-research-group/lawstat documentation built on Dec. 20, 2021, 9:50 a.m.