Learn R Programming

NNS (version 0.5.6)

NNS.TSD: NNS TSD Test

Description

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

Usage

NNS.TSD(x, y)

Arguments

x

a numeric vector.

y

a numeric vector.

Value

Returns one of the following TSD results: "X TSD Y", "Y TSD X", or "NO TSD 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.TSD(x, y)
# }

Run the code above in your browser using DataLab