prob_h_indiff: Probability that the h best populations ranked according to...

View source: R/utils.R

prob_h_indiffR Documentation

Probability that the h best populations ranked according to ord are the best h.

Description

Probability that the h best populations ranked according to ord are the best h.

Usage

prob_h_indiff(mat, r = order(expected_rank(mat)), delta)

Arguments

mat

A matrix of samples

r

A ranking vector giving the order from smallest to largest

delta

An indifference zone value

Value

A vector giving the probability of indifference (equivalence) between the h ranked means

Examples

# Expect high probability that two best identified
# Others should be 50/50
D <- mvnfast::rmvn(4e4, c(1,1,2,2), diag(0.1,4))
rbind(prob_h_best(D), prob_h_indiff(D, delta = 1))

jatotterdell/automaticsims documentation built on Aug. 22, 2024, 10:52 p.m.