Learn R Programming

NNS (version 0.5.6)

NNS.SSD: NNS SSD Test

Description

Bi-directional test of second degree stochastic dominance using lower partial moments.

Usage

NNS.SSD(x, y)

Arguments

x

a numeric vector.

y

a numeric vector.

Value

Returns one of the following SSD results: "X SSD Y", "Y SSD X", or "NO SSD EXISTS".

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. https://www.scirp.org/Journal/PaperInformation.aspx?PaperID=63817.

Examples

Run this code
# NOT RUN {
set.seed(123)
x <- rnorm(100) ; y <- rnorm(100)
NNS.SSD(x, y)
# }

Run the code above in your browser using DataLab