Description Usage Arguments References Examples
Return the statistic and p-value of a goodness of fit test on AMAX and POT mdoels. The null hypotesis (composite) is that the data were generated by the fitted distribution.
1 2 3 4 5 6 7 |
obj |
Output from |
method |
Test to be performed. Either Anderson-Darling |
Choulakian, V., Stephens, M.A., 2001. Goodness-of-Fit Tests for the Generalized Pareto Distribution. Technometrics 43, 478–484. https://doi.org/10.2307/1270819
Heo, J.-H., Shin, H., Nam, W., Om, J., Jeong, C., 2013. Approximation of modified Anderson–Darling test statistics for extreme value distributions with unknown shape parameter. Journal of Hydrology 499, 41–49. https://doi.org/10.1016/j.jhydrol.2013.06.008
Ba, I., Ashkar, F., 2017. Discrimination between a group of three-parameter distributions for hydro-meteorological frequency modeling. Can. J. Civ. Eng. 45, 351–365. https://doi.org/10.1139/cjce-2017-0416
1 2 3 4 5 6 7 8 9 10 11 12 | ## The same simulated distribution should be accepted p-value >.05
x <- rAmax(100, c(100,30,-.1), 'gev')
fit <- FitAmax(x, 'gev', varcov = FALSE, nsim = 100)
GofTest(fit)
## The same apply to POT model
fit <- FitPot(flow~date, flowStJohn, u = 1000,
declust = 'flood', r = 14)
## By default using a table of value with maximum likelihood
GofTest(fit)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.