Internal function that computes sample L-moments with an option for trimmed L-moments (TLmoms with left trimming). Includes a fail-safe mode for use in optimization loops.
lmoms.md.park(x, nmom = 5, mtrim = FALSE, no.stop = FALSE, vecit = FALSE)A list (from lmomco::TLmoms()) with an additional ifail
component (0 = success, 1 = failure).
Numeric vector of data.
Number of L-moments to compute. Default is 5.
Logical. If TRUE, use left-trimmed L-moments (trim=5). Default is FALSE.
Logical. If TRUE, return failure indicator instead of stopping. Default is FALSE.
Logical. If TRUE, return as a vector. Default is FALSE.