Learn R Programming

NNS (version 11.3)

NNS.SSD.uni: NNS SSD Test uni-directional

Description

Uni-directional test of second degree stochastic dominance using lower partial moments used in SD Efficient Set routine.

Usage

NNS.SSD.uni(x, y)

Value

Returns (1) if "X SSD Y", else (0).

Arguments

x

a numeric vector.

y

a numeric vector.

Author

Fred Viole, OVVO Financial Systems

References

Viole, F. and Nawrocki, D. (2016) "LPM Density Functions for the Computation of the SD Efficient Set." Journal of Mathematical Finance, 6, 105-126. tools:::Rd_expr_doi("10.4236/jmf.2016.61012").

Examples

Run this code
if (FALSE) {
set.seed(123)
x <- rnorm(100) ; y <- rnorm(100)
NNS.SSD.uni(x, y)
}

Run the code above in your browser using DataLab