Description Usage Arguments Details Value Author(s) References See Also Examples
Goodness-of-fit test statistics
A2
(Anderson–Darling),
W2
(Cramer–von Mises),
U2
(Watson),
D
(Kolmogorov–Smirnov), and
V
(Kuiper).
By default, NA
s are omitted. For the tables of critical values, see
\insertCiteStephens_1986;textuallawstat and
\insertCitePuig_Stephens_2000;textuallawstat.
1 | laplace.test(y)
|
y |
a numeric vector of data values. |
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
.
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. |
Kimihiro Noguchi, Yulia R. Gel
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.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.