prob_h_best: Probability best h according to rank r

View source: R/utils.R

prob_h_bestR Documentation

Probability best h according to rank r

Description

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

Usage

prob_h_best(mat, r = order(expected_rank(mat)), delta = 0)

Arguments

mat

A matrix of samples

r

A ranking vector giving the order from smallest to largest

Value

A vector giving the probability the h ranked means are superior to the other k-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))
prob_h_best(D)

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