# best.pair.tt: NPI for comparing two groups with terminated tails In NPIstats: Nonparametric Predictive Inference

## Description

NPI lower and upper probabilities for the event that the next future observation from group Y is larger than the next future observation from group X. The information available consists of precise measurements of real-valued data only within a specific range, between the cut points, where the numbers of observations to the left and to the right of this range available.

## Usage

 `1` ```best.pair.tt(X, Y, Lx = -Inf, Ux = Inf, Ly = -Inf, Uy = Inf) ```

## Arguments

 `X` numeric vector of data values `Y` numeric vector of data values, to check if it is the best group `Lx` numeric value, lower cut point for group X, default set to -Inf `Ux` numeric value, upper cut point for group X, default set to Inf `Ly` numeric value, lower cut point for group Y, default set to -Inf `Uy` numeric value, lower cut point for group Y, default set to Inf

## Value

NPI lower and upper probabilities for the event that the next future observation from group Y is larger than the next future observation from group X.

## References

T.A. Maturi, P. Coolen-Schrijner and F.P.A. Coolen (2009). Nonparametric predictive pairwise comparison with terminated tails. International Journal of Approximate Reasoning, 51(1), 141-150.

## Examples

 ```1 2 3 4 5 6``` ```data(BreakdownTimes) data2<-split(BreakdownTimes\$times, BreakdownTimes\$group) # No terminated tails, complete data best.pair.tt(data2\$X, data2\$Y) # terminated tails with Ly = 0.5, Uy = 4 and Ux = 10, but as Lx is not given then Lx=-Inf best.pair.tt(data2\$X, data2\$Y, Ux = 10, Ly = 0.5, Uy = 4) ```

NPIstats documentation built on Feb. 16, 2021, 5:07 p.m.