GoFComparePool | R Documentation |
compares the RMSE of four distribution fits for a pooling group.
GoFComparePool(x)
x |
a numeric vector (your AMAX sample) |
This function calculates an RMSE fit score for four distributions (GEV, GenLog, Gumbel, & Kappa3). The lowest RMSE is the best fit. It works for pooling groups created using the Pool or PoolSmall function. It uses the same method as GoFCompare (see the associated details of that function). It first standardises the pooled AMAX samples (by dividing them by median) and then treats them as a single large sample. Note that this is not a hypothesis test. It is only for comparing the fit across the distributions.
A list. The first element is a dataframe with four columns and one row of results. Each column has the standardised RMSE associated with one of the four distributions (GEV, GenLog, Gumbel, Kappa3). The second element is a character string stating the distribution with the best fit.
Anthony Hammond
# Get a pooling group then compare the fit..
Pool60009 <- Pool(GetCDs(60009))
GoFComparePool(Pool60009)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.