NNS.SS returns:
$$P(X > Y),$$
the tie probability
$$P(X = Y),$$
and the tie-adjusted stochastic superiority measure
$$P^* = P(X > Y) + \frac{1}{2} P(X = Y).$$
When confidence.interval = TRUE, confidence bounds for P^*
are computed from NNS.meboot bootstrap replicates using
LPM.VaR and UPM.VaR with degree = 0.
Missing values are removed from both x and y using
stats::na.omit. The empirical estimates are computed via a fast sorted
comparison routine rather than explicit pairwise expansion of all
x-y combinations.
For continuous data, p_tie will typically be zero, so p_star
and p_gt will be identical up to numerical precision. For discrete
data, p_star provides the standard tie-adjusted superiority measure.
When confidence.interval = TRUE, the interval is constructed from the
empirical bootstrap distribution of p_star, where
\(\alpha = 1 - ci\). The lower bound is obtained from
LPM.VaR evaluated at \(\alpha / 2\), and the upper bound is
obtained from UPM.VaR evaluated at \(\alpha / 2\), both with
degree = 0.