Computes the divergent upper partial moment (upper‑left quadrant 2) between two equal‑length numeric vectors.
Arguments
- degree_lpm
numeric; LPM degree = 0 gives frequency, = 1 gives area.
- degree_upm
numeric; UPM degree = 0 gives frequency, = 1 gives area.
- x
numeric vector of observations.
- y
numeric vector of the same length as x.
- target_x
numeric vector; thresholds for x (defaults to mean(x)).
- target_y
numeric vector; thresholds for y (defaults to mean(y)).