Estimates the parameters of a probability distribution by maximizing the log‐likelihood.
Initial parameter estimates are obtained using the method of L‐moments and optimization
is performed via stats::nlminb() with repeated perturbations if needed.
For NS-FFA: To estimate parameters for a nonstationary model, include the
observation years (ns_years) and the nonstationary model structure
(ns_structure).