trim=1
). The relation between distribution parameters and TL-moments
is seen under lmomTLgld
. There are no simple expressions for the parameters in terms of the L-moments. This function is considered EXPERIMENTAL and general details of the algorithm are provided below. Further, consider that multiple parameter solutions are possible with the Generalized Lambda so some expertise in the distribution and other aspects are needed.parTLgld(lmom,result='best',verbose=FALSE,extract=0,initkh=NULL)
TLmoms
.best
, then the minimum error solution is returned. If dataframe
, then data.frame
is returned with sequence of valid solutions sorted in ascending error order.verbose=FALSE
.result=dataframe
and extract
greater than zero, then the extract=n
returns the n
th element of the data.frame
as if that element was the best
solution.list
is returned if result='best'
.gld
.data.frame
is returned if result='dataframe'
, which is sorted by ascending error.optim
(the R function) efforts to perform a least sum-of-square errors on the following objective function.$$(\hat{\tau}^{(1)}_3 - \tilde{\tau}^{(1)}_3)^2 + (\hat{\tau}^{(1)}_4 - \tilde{\tau}^{(1)}_4)^2 \mbox{, }$$
where $\tilde{\tau}^{(1)}_r$ is the L-moment ratio of the data, $\hat{\tau}^{(1)}_r$ is the estimated value of the TL-moment ratio for the current pairing of $\kappa$ and $h$ and $\tau^{(1)}_r$ is the actual value of the L-moment ratio.
For each optimization a check on the validity of the parameters so produced is made--are the parameters consistent with the Generalized Lambda distribution and a second check is made on the validity of $\tau^{(1)}_3$ and $\tau^{(1)}_4$. If both validity checks return TRUE
then the optimization is retained if its sum-of-square error is less than the previous optimum value. It is possible for a given solution to be found outside the starting region of the initial guesses. The surface generated by the $\tau^{(1)}_3$ and $\tau^{(1)}_4$ equations seen in lmomTLgld
is complex--different initial guesses within a given region can yield what appear to be radically different $\kappa$ and $h$. Users are encouraged to verbose
argument). A quick double check on the L-moments (not TL-moments) from the solved parameters using lmomTLgld
is encouraged as well.
TLmoms
, lmomTLgld
, cdfgld
, quagld
,
pargld
TL1 <- TLmoms(rnorm(200),trim=1)
p <- parTLgld(TL1)
TL2 <- lmomTLgld(p)
Run the code above in your browser using DataLab