Learn R Programming

NNS (version 0.5.6)

D.UPM: Divergent-Upper Partial Moment (Upper Left Quadrant 2)

Description

This function generates a divergent upper partial moment between two equal length variables for any degree or target.

Usage

D.UPM(degree.x, degree.y, x, y, target.x = mean(x), target.y = mean(y))

Arguments

degree.x

integer; Degree for variable X. (degree.x = 0) is frequency, (degree.x = 1) is area.

degree.y

integer; Degree for variable Y. (degree.y = 0) is frequency, (degree.y = 1) is area.

x

a numeric vector.

y

a numeric vector of equal length to x.

target.x

numeric; Typically the mean of Variable X for classical statistics equivalences, but does not have to be. (Vectorized)

target.y

numeric; Typically the mean of Variable Y for classical statistics equivalences, but does not have to be. (Vectorized)

Value

Divergent UPM of two variables

References

Viole, F. and Nawrocki, D. (2013) "Nonlinear Nonparametric Statistics: Using Partial Moments" https://www.amazon.com/dp/1490523995/ref=cm_sw_su_dp

Examples

Run this code
# NOT RUN {
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