powered by
This function generates an n‑dimensional co‑upper partial moment (n >= 2) for any degree or target.
Co.UPM_nD(data, target, degree = 0, norm = TRUE)
Numeric; the n‑dimensional co‑upper partial moment.
A numeric matrix with observations in rows and variables in columns.
A numeric vector, length equal to ncol(data).
numeric; degree for upper deviations (0 = frequency, 1 = area).
logical; if TRUE (default) normalize to the maximum observed value (→ [0,1]), otherwise return the raw moment.
TRUE
if (FALSE) { mat <- matrix(rnorm(200), ncol = 4) Co.UPM_nD(mat, rep(0, ncol(mat)), degree = 1, norm = FALSE) }
Run the code above in your browser using DataLab