power_best_normal: Power calculation for the Indifferent-zone approach for...

View source: R/ss_best_normal.R

power_best_normalR Documentation

Power calculation for the Indifferent-zone approach for normal outcomes

Description

Estimate the probability of correctly select the best group among ngroups groups if the difference between the best group and the next best is at least dif(the Indifferent-Zone), and the standard deviation is sd

Usage

power_best_normal(dif, sd, ngroups, npergroup, seed = NULL)

Arguments

dif

Numeric. Indifferent-zone. Minimum difference that is considered meaningful.

sd

Numeric. Common standard deviation of the response variable.

ngroups

Integer. Number of groups (treatments) being compared.

npergroup

Integer. Number in each group.

seed

Optional. Integer seed to use in the internal call to multp().

Value

Numeric. Probability of correctly selecting the best group.

Note

The function uses multp(), which computes the joint cumulative distribution for the selection procedure. This implementation assumes equal variances and independent samples.

Examples

power_best_normal(dif = 0.5, sd = 1, ngroups = 3, npergroup = 11)


ssutil documentation built on Sept. 18, 2026, 1:06 a.m.