Learn R Programming

UKFE (version 0.1.1)

GoTFPool: Goodness of tail fit (GoTF) for pooling groups

Description

Calculates GoTF scores for pooling groups for both generalised extreme value (GEV) and generalised logistic (GenLog) distributions

Usage

GoTFPool(x)

Arguments

x

pooling group derived from the Pool function

Value

A list of two data.frames. Each with one row of the two GoTF values related to the columns; p(Tail cv) & p(Tail mean). See GoTF details. The first data.frame is for the GEV distribution and the second is for the GenLog distribution.

Details

The GoTF for pooling groups is calculated by standardising all the sites in the group (dividing by median) and calculating the linear coefficient of variation (Lcv) and linear skewness (Lskew) of the pooled data as if it was one sample. The GoTF() function is then applied to the pooled data with the GF arguments using the aforementioned Lcv and Lskew, and QMED equal to one. The GoTF scores are calculated for the GEV and GenLog distributions and can be used to assist the decision of which distribution to use for the final estimates. See details for the GoTF function for information about the resulting values. The closer the scores are to one, the better the tail fit.

Examples

Run this code
# NOT RUN {
#Get CDs, create pooled group and calculate GoTFs.
# }
# NOT RUN {
CDs.203018 <- GetCDs(203018)
# }
# NOT RUN {
Pool.203018 <- Pool(CDs.203018)
# }
# NOT RUN {
GoTFPool(Pool.203018)
# }

Run the code above in your browser using DataLab