prob_each_superior_all: Probability each superior to all

View source: R/utils.R

prob_each_superior_allR Documentation

Probability each superior to all

Description

Probability that each column in mat is superior to all other columns.

Usage

prob_each_superior_all(mat, delta = 0)

Arguments

mat

A matrix of samples

delta

The minimal effect bound

Value

A vector of probabilities that each dimension is maximum

Examples

# Superiority
prob_each_superior_all(matrix(rnorm(1e4, 1:10), 1000, 10, byrow = T), 0.5)
# Non-inferiority
prob_each_superior_all(matrix(rnorm(1e4, 1:10), 1000, 10, byrow = T), -0.5)

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