Doubly balanced samples with dynamic sample sizes. | Synapse