Learn R Programming

NNS (version 0.5.6)

UPM: Upper Partial Moment

Description

This function generates a univariate upper partial moment for any degree or target.

Usage

UPM(degree, target, variable)

Arguments

degree

integer; (degree = 0) is frequency, (degree = 1) is area.

target

numeric; Typically set to mean, but does not have to be. (Vectorized)

variable

a numeric vector.

Value

UPM of variable

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)
UPM(0, mean(x), x)
# }

Run the code above in your browser using DataLab