powered by
This function generates a divergent upper partial moment between two equal length variables for any degree or target.
D.UPM(degree_lpm, degree_upm, x, y, target_x, target_y)
Divergent UPM of two variables
integer; Degree for lower deviations of variable X. (degree_lpm = 0) is frequency, (degree_lpm = 1) is area.
(degree_lpm = 0)
(degree_lpm = 1)
integer; Degree for upper deviations of variable Y. (degree_upm = 0) is frequency, (degree_upm = 1) is area.
(degree_upm = 0)
(degree_upm = 1)
a numeric vector. data.frame or list type objects are not permissible.
a numeric vector of equal length to x. data.frame or list type objects are not permissible.
x
numeric; Target for lower deviations of variable X. Typically the mean of Variable X for classical statistics equivalences, but does not have to be.
numeric; Target for upper deviations of variable Y. Typically the mean of Variable Y for classical statistics equivalences, but does not have to be.
Fred Viole, OVVO Financial Systems
Viole, F. and Nawrocki, D. (2013) "Nonlinear Nonparametric Statistics: Using Partial Moments" (ISBN: 1490523995)
set.seed(123) x <- rnorm(100) ; y <- rnorm(100) D.UPM(0, 0, x, y, mean(x), mean(y))
Run the code above in your browser using DataLab