This function generates a standardized univariate upper partial moment of any non‑negative degree for a given target.
UPM.ratio(degree, target, variable)
Numeric vector of standardized upper partial moments.
numeric; degree = 0 gives frequency, degree = 1 gives area.
numeric vector; threshold(s). Defaults to mean(variable).
numeric vector or data‑frame column to evaluate.
Fred Viole, OVVO Financial Systems
Viole, F. & Nawrocki, D. (2013) *Nonlinear Nonparametric Statistics: Using Partial Moments* (ISBN:1490523995)