Sizing

sealed interface Sizing(source)

Whether an arm pair can reach significance within a budget. Sufficient carries the planner's own trial plan; Insufficient carries the numbers it would take, never a guess.

Inheritors

Types

Link copied to clipboard
data class Insufficient(val reason: Shortage, val allowedPerArm: Int, val neededPerArm: Int?, val shortfallTrials: Int?, val neededMinutes: Long?, val shortfallMinutes: Long?, val detail: String) : Sizing

Sizing.Insufficient.neededPerArm, Sizing.Insufficient.shortfallTrials (over both arms) and the minutes are null when no count is known: no completed run to take a rate from, or a rate no count up to the exact test's limit of Trials.MAX_PER_ARM per arm reaches at the target power.

Link copied to clipboard
data class Sufficient(val plan: TrialPlan, val trials: Int, val minutes: Long) : Sizing

Functions

Link copied to clipboard
abstract fun toJson(): JsonObject