Applies model selection using AIC, WAIC1, WAIC2 and leave-one-out logscore
to the input data \(x\),
for 10 one tailed models in the fitdistcp
package
(although for the GPD, the logscore is NA for mathematical reasons).
The code is straightforward, and the point is to illustrate what is
possible using the model selection outputs from the fitdistcp
routines.
The input data may be automatically shifted so that the minimum value is positive.
For the Pareto, the data may be further shifted so that the minimum value is slightly greater than 1.