Stochastic dominance originated as a sophisticated comparison of two distributions of
stock market returns. The dominating distribution is superior in terms of local
mean, variance, skewness, and kurtosis, respectively. However, stochastic
dominance orders 1 to 4 are really not related to the four moments.
Some details are in Vinod (2022, sec. 4.3) and vignettes. Nevertheless,
this function uses the output of `wtdpapb.' and Anderson's
algorithm. Of course, Anderson's method
remains subject to the trapezoidal approximation avoided by exact stochastic
dominance methods.