Learn R Programming

GLmom (version 1.3.1)

lmoms.md.park: Modified L-moments calculation with optional trimming

Description

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.

Usage

lmoms.md.park(x, nmom = 5, mtrim = FALSE, no.stop = FALSE, vecit = FALSE)

Value

A list (from lmomco::TLmoms()) with an additional ifail

component (0 = success, 1 = failure).

Arguments

x

Numeric vector of data.

nmom

Number of L-moments to compute. Default is 5.

mtrim

Logical. If TRUE, use left-trimmed L-moments (trim=5). Default is FALSE.

no.stop

Logical. If TRUE, return failure indicator instead of stopping. Default is FALSE.

vecit

Logical. If TRUE, return as a vector. Default is FALSE.