TrialSchedule

class TrialSchedule(val seed: String, val perArm: Int)(source)

The order of the trials of one experiment. Each trial index runs both arms, so the schedule says which arm runs first at every index. Blocks of two indices put one arm first once and second once (control, treatment, treatment, control), which cancels a linear drift over time; a hash bit of the seed picks which arm opens a block. The seed comes from the two capsules and the experiment id, so verify derives the same order.

Constructors

Link copied to clipboard
constructor(seed: String, perArm: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val perArm: Int
Link copied to clipboard
Link copied to clipboard

The order as pairs, CT when the control runs first and TC otherwise.

Link copied to clipboard

For each trial index, whether the treatment side runs first.

Functions

Link copied to clipboard