Fits the three-parameter Dagum distribution to an xts
series by numerical minimisation of L-moments. Closed-form L-moment
expressions via Beta-function PWMs are evaluated at each optimisation
step. The L-BFGS-B optimiser minimises the normalised root-sum-square
error between the sample and theoretical L-moments of orders
specified by order. A two-step seeding procedure initialises
the shape parameters by min-max nearest-neighbour search over the
scale-free L-ratios in the Dagum_InitValues lookup table, and
the scale is derived analytically from the sample first L-moment and
the matched shapes' unit-scale L-moment. The mean exists only when
\(\theta < 1\). Zero values below zero_threshold may be
excluded via ignore_zeros.
Usage
fitlm_dagum(x, ignore_zeros = FALSE, zero_threshold = 0.01, order = c(1:5))Arguments
- x
An xts object containing the time series data.
- ignore_zeros
Logical. If
TRUE, values belowzero_thresholdare excluded. DefaultFALSE.- zero_threshold
Numeric. Threshold below which values are treated as zero. Default
0.01.- order
Integer vector of L-moment orders matched by the optimiser. Default
1:5.