select.best.groups {NPIstats} | R Documentation |
NPI for selecting the subset of best groups
Description
NPI lower and upper probabilities for the event that the next future observations from groups S are greater than all future observations from the other groups.
Usage
select.best.groups(data, S)
Arguments
data |
a list of numeric data vectors |
S |
a vector of indices of the groups in the data list to be considered as the subset of best groups |
Value
NPI lower and upper probabilities for the event that the next future observations from groups S are greater than all future observations from the other groups.
Examples
# NPI lower and upper probabilities for the event that
# the next future observations from groups 1 and 3 are greater than
# all future observations from the other groups.
data(FourSources)
# Convert the dataframe to a list of groups
data2<-split(FourSources$value,FourSources$source)
select.best.groups(data2,S=c(1,3))
[Package NPIstats version 0.1.0 Index]